Input Centigrade and output Fahrenheit.
Fahrenheit was once the main scale used in England and is still widely used in America, although the founding fathers thought about adopting the metric system instead. Around 1965, Britain began switching towards the metric system.
Write a program that converts between Centigrade and Fahrenheit.
Use this boilerplate code as a starting point:
Remember to add a comment before a subprogram to explain its purpose.
Enter the temperature in Centigrade: 30
30 degrees Centigrade is 86.0 degrees Fahrenheit.
Use these resources as a reference to help you meet the success criteria.
Run the unit tests below to check that your program has met the success criteria.
Enter the temperature in Centigrade: -5
-5 degrees Centigrade is 23.0 degrees Fahrenheit.
Enter the temperature in Centigrade: 30
30 degrees Centigrade is 86.0 degrees Fahrenheit
Enter the temperature in Centigrade: 0
0 degrees Centigrade is 32.0 degrees Fahrenheit.
Check that you have used comments within the code to describe the purpose of subprograms.