Question: Write a java program (name it countAverage Grades) as follows: The main method prompts the user to enter number of students in a class

Write a java program (name it countAverage Grades) as follows: The main 



Write a java program (name it countAverage Grades) as follows: The main method prompts the user to enter number of students in a class (class size is integer value), then prompts the user to enter the grades (between 0 and 100) into an array of type integer. The entered class size determines the array size. Use exception handling to verify that entered grades are between 0 and 100. Next, the main method passes the filled array to method findAverage (...) to recursively determine and return the class average as a double value. Again, method findAverage (...) is a recursive method. Format the outputs as follows (shown input values are just for illustration, user may enter values one per line): Class size: Entered grades: Class average: Class size: Entered grades: Class average: 3 100 100 100 100.00 7 50 75 80 80 40 35 85 63.57 Class size: Entered grades: Class average: 8 0 100 25 90 55 30 90 35 53.13 Document your code, use proper prompts for input, format outputs as shown above, use sound coding practices we learned thus far, do not hard code inputs, allow program re-runs, and test your code thoroughly.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres a Java program named CountAverageGrades that implements the described functionality java impor... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!