This program will require the programmer to store exam scores for a batch of students. The batch will consist of 1 to 10
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
This program will require the programmer to store exam scores for a batch of students. The batch will consist of 1 to 10
Please see sample data below! You can assume the VID for a student is the value of an index Index 0 1 2 ⠀ 999 Exam 1 78 99 78 78 Exam 2 98 87 96 * 89 Exam 3 89 78 3 ⠀ 78 You can assume that column 0 stores the student's exam one score Exam 4 76 96 45 ⠀ 25
If the user selects option 1: The program will prompt the user to enter the next student's four exam scores. NOTE: Each row in the Array will represent one student's score. ****** MAIN MENU *** ***** 1. Add grades for next student. 2. Display all grades. 3. Show average by Exam. 4. Show average by Student. 5. Quit the program. Enter selection:
If the user selects option 2: The program will display a GRID that shows the VID (the row index) along with all the exam scores for each student entered. Index 0 1 2 999 Exam 1 78 99 78 78 Exam 2 98 87 96 89 Exam 3 89 78 3 78 ******* MAIN MENU ********* 1. Add grades for next student. 2. Display all grades. 3. Show average by Exam. 4. Show average by Student. 5. Quit the program. Enter selection: Exam 4 76 96 45 25
If the user selects option 3: A GRID will be displayed as shown. Exam 1 78 Exam 2 98 Exam 3 89 Exam 4 76 ******* MAIN MENU ********* 1. Add grades for next student. 2. Display all grades. 3. Show average by Exam. 4. Show average by Student. 5. Quit the program. Enter selection: SA
If the user selects option 4: A GRID will be displayed as shown. VID 0 1 2 3 4 01 5 6 Average 98.9% 48.9% 88.8% 69.69% 79.79% 89.89% 77.96% ******* MAIN MENU ********* 1. Add grades for next student. 2. Display all grades. 3. Show average by Exam. 4. Show average by Student. 5. Quit the program. Enter selection: