Question: Write a program that uses a structure to store the following data for each student Member Name 1. name 2. IDnum 3. Test[3] 4. average
Write a program that uses a structure to store the following data for each student Member Name 1. name 2. IDnum 3. Test[3] 4. average 5. grade Description Student name Student ID number Pointer to an array of test scores Average of test scores Course letter grade (A, B, C, D, or F) After the student array have been dynamically allocated, the program should ask for the ID number and the test scores for each student. The average test score should be calculated and stored in the average member of each structure. The course grade should be computed on the basis of the following grading scale 90-100 80- 89 70-79 60-69 below 60 The course grade should then be stored in the grade member for each structure. Once all this data is calculated, a table should be display on the screen listing each student's name, ID number, test scores, average test score and course grade Input validation: all the data for each student is entered Do not accept negative numbers for any test score
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
