Write a Java code to accept temperature value from user (in centigrade) and display an appropriate message as below. FREEZING if temperature in less than 0 COLD if temperature is between0 to 15 WARM if temperature is between16 to 30 HOT if temperature is between31 to 40 VERY HOT if temperature is greaterthan 4
Write a Java code to accept temperature value from user (in centigrade) and display an appropriate message as below. FREEZING if temperature in less than 0 COLD if temperature is between0 to 15 WARM if temperature is between16 to 30 HOT if temperature is between31 to 40 VERY HOT if temperature is greaterthan 4
Chapter6: Looping
Section: Chapter Questions
Problem 8PE
Related questions
Question
Write a Java code to accept temperature value from user (in centigrade) and display an appropriate message as below.
FREEZING if temperature in less than 0 COLD if temperature is between0 to 15 WARM if temperature is between16 to 30 HOT if temperature is between31 to 40 VERY HOT if temperature is greaterthan 40
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 5 steps with 3 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT