More Operators

The file Grades.java contains a program that reads in a sequence of student grades and computes the average grade, the number of students who pass (a grade of at least 60) and the number who fail. The program uses a loop (Section 3.3 of the textbook). Submit hardcopy of your program after step 4, as well as a transcript of that program running correctly.

  1. Compile and run the program to see how it works.

  2. Study the code and do the following.

  3. Run your program to make sure it works.

 

 

  1. Replace the println statement concerning the Class Average with a printf statement so that only two digits are printed after the decimal point.