/** 9/5/2018
  * This program introduces mathematical expressions in java, and uses
  * the techniques to convert degrees celcius to degrees faranheit.
  */

public class Conversion
{  
  public static void main(String[]  args) {
  /*** HERE ARE SEVERAL EXAMPLES FOR NOTES *****/
    //  7 + 6 - 4; expression is not a statement
    System.out.println("7 + 6 - 4 = " + (7 + 6 - 4));
    System.out.println(7 + 6 - 4 + " = 7 + 6 - 4");
    
    double halfPrice, currentPrice=99.9;
    // this will be an error: uninitialized variable
    //System.out.println("half price is: " + (1.0 / 2 * currentPrice));

    // show increment operator where variable is changed to be 1 more than
    // it was.
    int count=100;
    count++; // this is equivalent to count = count + 1
    System.out.println("count="+count);
    /**** Begin Celcius to Faranheit  ******/
    double celcius = 37.5;
      // 9/5 celcius + 32
    double faran = 9/5.0*celcius + 32;  
    System.out.println("celcius: " + celcius + " faranheit: " + faran);
    
    
    
    
  }
} 
/** Lab 2: Use java expressions to calculate the distance of a point
  * in a plane to the origin.
  Your program will declare variables to represent the x and y coordinates 
  of a point, and you will use an expression to calculate the distance of
  point (x,y) to point (0,0).
  */