Question: CHALLENGE ACTIVITY 3 . 5 . 1 : Detecting ranges using logical operators. ZyBooks catalog ( ? ) H e 5 2 8 0 4
CHALLENGE
ACTIVITY
: Detecting ranges using logical operators.
ZyBooks catalog
zq
Jump to level
The temperature of tin in degrees Celsius is read from input into integer variable degreeVal. If degreeVal is:
degrees Celsius, output "Tin: solid state".
degrees Celsius and degrees Celsius, output "Tin: liquid state".
Otherwise, output "Tin: gaseous state". End each output with a newline.
Click here for examples
Note: Use implicit ranges to simplify the solution.
import java.util.Scanner;
public class Tinstates
public static void mainString args
Scanner scnr new Scanner
System.in;
int degreeVal;
degreeVal scnrnextInt ;
I Your code goes here
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
