Question: Write a program that reads a list of test and quizzes scores. The first three numbers are for quiz1,2, & 3 respectively. The last three
Write a program that reads a list of test and quizzes scores. The first three numbers are for quiz1,2, & 3 respectively. The last three are for test1, 2, & 3 respectively. The final score is based on the following criteria: quizzes are 40% of the final grade, and tests are 60%. Requirements 1. Create a function called AvgCalc that accepts 6 parameters (passed by reference) then return their average (type double) Create another function called Display that accepts 1 parameter (average) passed by reference, then display the final average and the letter grade based on the following criteria: 2. a. Average between 90- 100 letter grade A b. Average between 80 89 letter grade B c. Average between 70- 79 -letter grade C d. Average between 60 69 letter grade D e. Average below 60 letter grade 3. Display all grades, their average, and the letter grade for each student on the screen, then send the same information to Output file Sample File InputFile: (every number is separated by a space) 78 99 78 100 76 88 100 100 100 96 85 75 100 85 96 96 56 45 85 80 75 98 85 75 100 85 88 96 85 75 80 50 60 75 60 50 55 75 70 85 60 75 75 Output should look similar to this Quiz 1 Quiz2 Quiz3 Test1 Test2 Test3 Average 78 99 78 100 76 8886.8 Letter Grade Output File should look like this 78 99 78 100 76 88 86.8 B
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
