Question: Write a C++ program that uses a structure to store the following data: Member Name Name Idnum Tests Average Grade Description Student name Student

Write a C++ program that uses a structure to store the following

data: Member Name Name Idnum Tests Average Grade Description Student name Student ID number Pointer to an array of test scores Average rest score

Write a C++ program that uses a structure to store the following data: Member Name Name Idnum Tests Average Grade Description Student name Student ID number Pointer to an array of test scores Average rest score Course grade The program should keep a list of test scores for a group of students. It should ask the user how many test scores there are to be and how many students there are. It should then dynamically allocate an array of structures. Each structure s Tests member should point to a dynamically allocated array that will hold the test scores. After the arrays have been dynamically allocated, the program should ask for the ID number and all 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: Average Test Grade 91-100 Course Grade A 81-90 71-80 61-70 60 or below DUOF B C F The course grade should then be stored in the Grade member of each structure. Once all this data is calculated, a table should he displayed on the screen listing each student s name, ID number, average test score, and course grade. Input Validation: Be sure all the data (or each student is entered. Do not accept negative numbers (or any test score.

Step by Step Solution

3.44 Rating (157 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Read the code comments for more information C CODE include include using namespace std class student ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!