Convert Temperatures

Project #1

Write a temperature conversion program. Convert Celsius to Fahrenheit or Fahrenheit to Celsius.

Ask the user to:
  1. Enter a temperature (integers only)
  2. Enter type of conversion
  3. Convert the temperature
  4. display converted temperature (integer)
  5. Loop
How to exit the loop? Display error messages? Round and convert to integer?

Formula

°F = temperature Fahrenheit

°C = temperature Celsius (previously called Centigrade)

°F = ((9/5) * °C) + 32
°C = (5/9)(°F − 32)

Links

Celsius (Wikipedia)
Fahrenheit (Wikipedia)

Project #2

Add kelvin temperature conversion.

Kelvin (Wikipedia)