/* 9/9/2019
 User Input
 Scanner class
 */
import java.util.Scanner;

public class Celcius2 {
  
  public static void main(String[] args) { 
    double celcius;
    // prompt the user
    System.out.println("Enter degrees celcius: ");
    // read in user input
    Scanner sc = new Scanner(System.in); // gives us a Scanner object to help read
    celcius = sc.nextDouble();
    System.out.println("You entered: " + celcius);
   
    double faran = 9/5.0 * celcius + 32;
    // compound stmt surrounded by { }
    if (faran >= 80) {
      System.out.println("It is HOT!");
      System.out.println("Make sure to drink.");
    }
    boolean isCold = faran < 30;
    if (isCold) {
      System.out.println("It is cold.");
    }
    System.out.println("celcius " + celcius + " is equal to " + faran + " faranheit.");
    sc.close();
  }
}

/** Lab 4
  * Read in a number. Print whether the number is positive, negative,
  * or equal to zero.
  * Hint: use three individual if statements.
  */




