Write a console-based program that reads in student scores on a test then outputs the average score for the test.
The program should first prompt the user using a menu structure to find out whether or not the student count is known.
If the user knows the number of students, the program should proceed to ask for the count, read the grades using a counter-based loop, then output the average.
If the user does not know the number of students, the program should proceed with a sentinel loop (until a 1 is entered) until the user indicates that all values have been entered, then outputs the average.
All scores are between 0 and 100.
The average should be a real number.
Make sure your EXE allows the user to read the results before closing.
Output program credits at the beginning of execution listing your name and the program number.
0 · ·