Write a simple program for temperature conversion from Fahrenheit to Celsius or from Celsius to Fahrenheit (i.e. can convert either way) with the following requirements:

a. Ask if the input temperature is in F or C. Allow for entry in lower-case, and for the program to exit() if someone types in any other letter .

b. Ask for the input temperature (in just numerals, but allow for decimal points - e.g. allow entry of a number like 72.73))

c. Convert it from F to C, or from C to F as needed, and print out both the input temperature and scale (F, C) and the converted temperature and scale. Round the final output temperature to 2 decimal places.

Provide both source code and the output of the program as it runs.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.