import java.util.
Scanner;
public class TemperatureChecker {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String continueChecking;
do {
System.out.print("Enter the temperature in Celsius: ");
double temperature = scanner.nextDouble();
if (temperature < 0) {
System.out.println("It's freezing cold!");
} else if (temperature >= 0 && temperature <= 18) {
System.out.println("It's cold.");
} else if (temperature > 18 && temperature <= 28) {
System.out.println("It's warm.");
} else {
System.out.println("It's hot!");
int tempCategory = (int) temperature;
switch (tempCategory) {
case 0:
System.out.println("Exactly freezing point.");
break;
case 100:
System.out.println("Water boils at this temperature.");
break;
default:
System.out.println("No special category for this exact temperature.");
break;
System.out.print("Do you want to check another temperature? (yes/no): ");
continueChecking = scanner.next();
} while (continueChecking.equalsIgnoreCase("yes"));
System.out.println("Temperature checking completed.");
scanner.close();