Question: Java programing course ====== Write a program that reads a temperature and prints the weather is hot if the temperature is higher or equal to

Java programing course ======

Write a program that reads a temperature and prints the weather is hot if the temperature is higher or equal to 25. The weather is warm if the temperature is higher or equal to 15. The weather is cold when the temperature is lower than 15.

Example of the output:

Enter temperature: 30

The weather is hot

Enter temperature: 2

The weather is cold

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!