import java.util.Scanner;

/**
 * Makes a comment about the weather
 *
 * @author Mark Young (A00000000)
 */
public class Conditionals {

    /**
     * Run this program.
     *
     * @param args command lines arguments (ignored)
     */
    public static void main(String[] args) {
        // Introduce self
        System.out.println("\n"
                + "Temperature Comment\n"
                + "-------------------\n\n"
                + "This program makes (very) small talk.\n");

        // create variables
        Scanner kbd = new Scanner(System.in);
        int temp;

        // get temperature
        System.out.print("What's the temperature (in \u00b0C)? ");
        temp = kbd.nextInt();
        kbd.nextLine();
        System.out.println();

        // comment on temperature
        if (30 <= temp) {
            System.out.println("It's hot!");
        } else if (25 <= temp) {
            System.out.println("It's warm!");
        } else if (15 <= temp) {
            System.out.println("It's nice!");
        } else if (5 <= temp) {
            System.out.println("It's cool!");
        } else {
            System.out.println("It's cold!");
        }
        System.out.println();
    }

}
