Question: 1 . Temperature Conversions Write a program that converts a temperature in degrees Celsius to the corresponding temperature in degrees Rankin. The program must read

1. Temperature Conversions
Write a program that converts a temperature in degrees Celsius to the corresponding temperature in degrees Rankin.
The program must read in a temperature (in degrees Celsius) from the keyboard. The program must display the converted temperature to the console. The program should handle the temperatures as floating point numbers (doubles).
The following equation could be used to convert Degrees Celsius to Degrees Fahrenheit:
tempFahrenheit = tempCels *(9.0/5.0)+32
The following equation could be used to convert Degrees Fahrenheit to Degrees Rankine (TR):
tempFahrenheit = tempRank 459.67
Example Output:
Please enter the temperature in Degrees C: 22
That is 531.27 Degrees Rankin.1. Temperature Conversions
Write a program that converts a temperature in degrees Celsius to the corresponding temperature in degrees Rankin.
The program must read in a temperature (in degrees Celsius) from the keyboard. The program must display the converted temperature to the console. The program should handle the temperatures as floating point numbers (doubles).
The following equation could be used to convert Degrees Celsius to Degrees Fahrenheit:
tempFahrenheit = tempCels *(9.0/5.0)+32
The following equation could be used to convert Degrees Fahrenheit to Degrees Rankine (TR):
tempFahrenheit = tempRank 459.67
Example Output:
Please enter the temperature in Degrees C: 22
That is 531.27 Degrees Rankin.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!