Question: Program #2 (33 points): Write a C++ program (in file named AverargeGardes.cpp) as follows. The main function of the program prompts the user to enter

 Program #2 (33 points): Write a C++ program (in file named

Program #2 (33 points): Write a C++ program (in file named AverargeGardes.cpp) as follows. The main function of the program prompts the user to enter number of students in a class (class size is integer), then it 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. Next, the main function passes the filled array to another function, named findAverage (...) (part of file AverargeGardes.cpp). Function findAverage (...) recursively determines and returns the class average as a double value. Again, function findAverage (...) is a recursive function. Format the outputs as shown below. Shown input values are just for illustration. Test data does not show input prompts, only outputs. Integrate a simple menu in the program with these options: 1. Read class size 2. Read class grades 3. Compute class average 4. Quit program Do Not hard-code test data in the code. Test data is entered using the menu options. Test your code with the following sample inputs and format the output as shown below. Page 1 You entered class size: You entered grades: Class average : 3 100 100 100 100.00 You entered class size: You entered grades: Class average: 7 50 75 80 80 40 35 85 63.57 You entered class size: You entered grades: Class average: 8 0 100 25 90 55 30 90 35 53.13

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!