Question: C++ programming Course Grade Project Write a program that uses a structure to store the following data: Member Name Description Name Student name (a structure)

C++ programming

Course Grade Project

Write a program that uses a structure to store the following data:

Member Name Description
Name Student name (a structure)
idNum Student ID number
testArrayPtr Pointer to an array of test scores
average Average test score
grade Course grade

Data file name: CIT237StudentGrades.txt

*If a data file exists, the program should read the existing data and store in the structures.

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 in addition to any that have been read (if any). It should then dynamically allocate an array of structures. Each structures testArrayPtrmember 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 names and ID numbers for all the students. It should loop through the students and ask for 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 Course Grade
91100 A
81-90 B
71-80 C
61-70 D
60 OR BELOW F

The course grade should then be stored in the grade member of each structure. Once all this data is calculated, a table should be displayed on the screen listing each students name, ID number, average test score, and course grade.

*At the end of the program, the data should be stored in a file.

Your program should have:

comments

header file

functions

input validation

Input Validation: Be sure all the data for each student is entered. Do not accept negative numbers for any test score. Make sure the first letter of the student first and last names are capitalized.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!