computer science SolutionHere is the code for you import jav

computer science


Solution

Here is the code for you:

import java.util.*;
class SolidLiquidOrGas
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
System.out.print(\"Enter the temperature: \");
double temperature = sc.nextDouble();
if(temperature < -273.15)
System.out.println(\"Error: Invalid temperature.\");
else if(temperature <= 0)
System.out.println(\"It\'s an ICE. Solid state.\");
else if(temperature <= 100)
System.out.println(\"It\'s water. Liquid state.\");
else
System.out.println(\"It\'s vapor. Gaseous state.\");   
}
}

computer science SolutionHere is the code for you: import java.util.*; class SolidLiquidOrGas { public static void main(String[] args) { Scanner sc = new Scanne

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site