/home/caleb/NetBeansProjects/ADSV Java/lab5_CalebFontenot/src/main/java/com/calebfontenot/lab5_calebfontenot/Operators.java

    /*
     * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
     * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
     */
    package com.calebfontenot.lab5_calebfontenot;

    /**
     *
     * @author caleb
     */
    public class Operators {
        public static void main(String[] args)
        {
            int x = 8; int y = 15; double d = 2;

            //1. Increment x by 2;
                //add code here
            x += 2;

            //2. Increment y by 5 using the += operator
                //add code here
            y += 5;

           //3. Increment d by 1 using the ++ operator
                //add code here
           d++;

           //4. Modify the expression below to print z1 = 1.5 and not 0.0
           double z1 = ((double) x /(double) y ) * d++;
           System.out.println("z1: " + z1 );

           //5. Modify the expresion below the print z2 = 2.5 and not 0.0
           double z2 = ((double) x /(double) y ) * ++d;
           System.out.println("z2: " + z2 );

           /* 6. Declare a variable z3 of type double and modify the
           right hand side of the expression you built in step 5 for the
           expression to evaluate 2.0.
           Assign the evaluation to varible z3
           */
           double z3 = ((double) x /(double) y * (d - 1));
            //add code here
            System.out.println("z3: "+ z3 );

            System.out.println("x=" + x + " y=" + y + " d=" + d +
                    " z1="+ z1 + " z2=" +z2 + " z3=" +z3);
        }
    }