CS 101 Laboratory Programming Assignment Two

Measurement Units Conversion

Write a program to convert temperature (degrees centigrade and Fahrenheit), speed (miles per hour and kilometers per hour), and mass (kilograms and pounds mass).

The user should initially see four choices: temperature conversion, speed conversion, mass conversion, and quit (exit).

For each choice, the user should then see two more choices, one for each way to convert (centigrade to Fahrenheit or Fahrenheit to centigrade, for instance).

When the exact conversion required is established, the program should prompt the user for the number to convert, and then present the answer followed by the original choice menu.

Turn in a sample session captured (copied) from the console and commented source code.



This page established January 28, 1999; last updated January 28, 1999.