Conversions

  1. Write a program that does a series of conversions for a user.
  2. The user will get no choice that they want to do. They will just input each thing they are asked and you will print out the conversion.
  3. Get the time in hours. Print out the time in minutes. (Minutes = Hours * 60)
  4. Get the length in meters. Print out the length converted to Inches. (Inches = Meters * 39.37)
  5. Get the distance in miles. Print out the distance converted to kilometers ( Kilometers = Miles * 1.609)
  6. Get the weight in kilograms. Print out the distance converted to pounds. (Pounds = Kilograms * 2.2046)
  7. Get the temperature in degrees Fahrenhuit. Print out the temperature converted to Celsius. (Celsuis = 5/9 * (Fahrenhuit - 32))
  8. At the top add in these comments and fill them in.
    //name:
    //date:
    //purpose: Conversions

An example of a run of the program (remember that the user can enter different numbers. What the user types is in red):

***********************************
        Conversions
**********************************

What is the time in hours? 1
That is 60 minute(s).

What is the lenght in meters? 1
That is 39.37 inches.
What is distance in miles? 1 
That is 1.609 km. 


What is the weight in kilograms? 1
That is 2.2046 pounds.


What is the temperature (F)? 100
That is 37.77777778 degrees C.