Search for question
Question

1.Write prompt asking for user to enter Celsius as input

Enter temperature in Celsius

2. Follow these steps to get temperature as input: a) Declare Celsius variable as double b) Read the

temperature as input c) Please convert input to double d) Store in variable called Celsius

3. Convert Celsius to Farenheit using the below formula. Make sure Farenheit variable is declared as

double

Farenheit = (Celsius * 9/5) + 32

4. Display the calculated value of Farenheit. For example,

The equivalent temperature is 101 degree Farehheit

5. Write an IF condition to check if Farenheit is below freezing temperature of 32. If so, display the

message:

This temperature is below freezing of 32 degree Farenheit

6. Write an IF condition to check if Farenheit is above boiling temperature of 212. If so, display the

message:

This temperature is above boiling point of 212 degree Farenheit

Congratulations.

Fig: 1