Thermodynamics: A complete undergraduate course