Create an array of test scores to a function


Discuss the below:

Q: Create a program that asks students how many test they have taken so far in a course. The program should accept any number from 1 to 5, but reprompt the user if the entry is invalid. The user can then enter the appropriate number of test scores, which you store in an array. Pass the number of tests and the array of test scores to a function that averages the student's test scores and displays the average. The function should compute a correct average whether the student has taken one, two, three, four, or five tests.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Create an array of test scores to a function
Reference No:- TGS01936445

Now Priced at $20 (50% Discount)

Recommended (93%)

Rated (4.5/5)