Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
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 · ·