Question: Write a conditional program in Java using if/else-if/else statements that: Reads a temperature: If temperature entry < 30, the program will display Cold! If temperature
Write a conditional program in Java using if/else-if/else statements that:
- Reads a temperature:
- If temperature entry < 30, the program will display Cold!
- If temperature entry >=100, the program will display Hot!
- Otherwise, the program will display Normal!
- Compile and run below program in Java.
- Make sure to click on the Output Window to input the data number.
- Test the program by entering different numbers.
- Take notes of below program to remember your observations and include your notes in the program comments.
- Notes: Dont forget to input the two data in the input console.
import java.util.Scanner;
import java.util.Scanner;
- Submit your work.
Notes: Dont forget to input the two data in the input console.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
