Statement of the second law, calculation of entropy, and its relation to the efficiency of thermodynamic cycles.