Question: Please help me with this. Write a program that will solve the following: A teacher has five students who have taken four Exams. The teacher

Please help me with this.
Write a program that will solve the following:
A teacher has five students who have taken four Exams. The teacher uses the following grading scale to assign a letter grade to each student, based on the average of the four exams:
90-100, A
80-89, B
70-79, C
60-69, D
0-59, F
This program uses several parallel arrays. There is an array of strings to hold the 5 student names and 4 arrays of 5 elements each (doubles), one entry per student in each array at the common index (review the material in the Powerpoint for the class for ch.7, section 7.7, slides 49-54), to hold the exam scores for each student. The student names and exam scores will be read from a file called Grading.txt. You will incorporate the code for doing this into its own function called GetData(), with appropriate parameters that will be called from main() once for each of the 5 students for which name and exam data are needed.
The format of the Grading.txt file will be as follows:
firstName lastName
examValue1
examValue2
examValue3
examValue4
and there will be a block of 5 lines of data like this for each of the 5 students.
Other arrays you will need include an array of characters to hold the 5 students letter grades and an array of 5 doubles to hold the 5 student averages (round up if .5 or above, down if .49 or less).
One all the entries have been made from the input file Grading.txt using the newly created function GetData(), you will need a function called CalcAvg(), with appropriate parameters based on each students set of exam grades in that array. You should also determine the letter grade in this function.
Finally, you will need a function to display the name of each student, along with their average and letter grade to the screen, DisplayData(), with appropriate parameters.
Structure of program:
1) your main() should just essentially initialize variables as needed and call other functions
2) the input of data from the text file into the arrays should be handled in one function, GetData(), with appropriate parameters
3) the calculation of the average for each student and their assignment of letter grade should be handled in one function, CalcAvg(), with appropriate parameters
4) the display of the output should be done in another function, DisplayData(), with appropriate parameters

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!