Question: Write a program using if, else if, and else statements that will ask the user to input todays temperature. If the temperature is above 80

Write a program using if, else if, and else statements that will ask the user to input todays temperature. If the temperature is above 80 degrees, display a message saying: "It is very hot today!" If the temperature is below 30 degrees, display a message saying: "It is very cold today!"

Otherwise (your program did not print any message yet), your program asks it is raining.

If it is raining, your program says, "It is raining outside!" If it is not raining, and the temperature is between 30 and 60 degrees, display a message saying: "It is a cool day outside!". If it is not raining and the temperature is between 60 and 80 degrees, display a message saying: "It is a beautiful warm day outside!"

Test your program with the following user input:

20

40

50

70

100

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!