Question: CHALLENGE ACTIVITY 3 . 5 . 1 : Detecting ranges using logical operators. ZyBooks catalog ( ? ) H e 5 2 8 0 4

CHALLENGE
ACTIVITY
3.5.1: Detecting ranges using logical operators.
ZyBooks catalog
(?)He
528040.3489528.93 zq 97
Jump to level 1
The temperature of tin in degrees Celsius is read from input into integer variable degreeVal. If degreeVal is:
233 degrees Celsius, output "Tin: solid state".
*233 degrees Celsius and 2501 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 main(String[] args){
Scanner scnr = new Scanner(
System.in);
int degreeVal;
degreeVal = scnr.nextInt () ;
I* Your code goes here */
}
}
1
2
3
4
 CHALLENGE ACTIVITY 3.5.1: Detecting ranges using logical operators. ZyBooks catalog (?)He

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!