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.

Temperature converter

⭐⭐

Make

Write a program that converts between Centigrade and Fahrenheit.

Success Criteria

Remember to add a comment before a subprogram to explain its purpose.

Complete the subprogram called c_to_f so that:

  1. It returns the Fahrenheit calculated as Centigrade multiplied by 1.8 plus 32.

Complete the main program so that:

  1. Line 12 should allow the user to input Centigrade as an integer.
  2. Line 13 should call the c_to_f subprogram.

Typical inputs and outputs from the program would be:

Enter the temperature in Centigrade: 30
30 degrees Centigrade is 86.0 degrees Fahrenheit.