/******************************************************************************
*  Short circuiting an if statement
*
*      @param float - total grade
*      @param int   - number of quizes                         
******************************************************************************/
public class shortCircuit 
{
    public static void main(String[] args) 
    {
        if (args.length != 2)                  //must be 2 cmd line args
        {                   
            System.out.println("Enter 2 numbers (totat_grade & count_quizes");
        }
        else
        {
            float totalGrade  = Float.parseFloat(args[0]);    //convert to float
            int   countQuizes = Integer.parseInt(args[1]);    //convert to int

            if ((countQuizes != 0) && (totalGrade / countQuizes > 70)) 
                System.out.println("You passed the course");
            else
                System.out.println("You failed the course");
        }
    }
}