Question: CPP- Project Number 5 (After Chapter 7 ) A teacher has 20 students who have taken 4 tests. The teacher uses the following grading system
CPP- Project Number 5 (After Chapter 7 )
A teacher has 20 students who have taken 4 tests. The teacher uses the following grading system to assign a letter grade to a student, based on the average of his or her four test scored:
Test Score Letter Grade
90 100 A
80 - 89 B
70 79 C
60 69 D
0 59 F
Write a program class that uses a String array object to hold the 20 students names, an array containing 20 groups of four doubles to hold each students set of test scores. The program class should have methods that return a specific students name, the average test score and a letter grade based on the array.
Demonstrate the class in a program that allows the user to enter each students name and his or her four test scores. It should then display each students average test score and letter grade. In addition create an average score over the entire class for each test and an average over all for all tests for all students and display these values
Input can be typed in via the keyboard or entered through a data file containing the information on the next page.
Input validation: Do not accept test scores less than zero or greater than 100.
Data for CPP Project Number Five
Student Score 1 Score 2 Score 3 Score 4
Angela Amon 70.0 80.0 90.0 100.0
Bruno Bwana 82.0 92.0 72.0 90.0
Charles Cary 63.0 73.0 79.0 85.0
Dennis Donley 52.0 65.0 80.0 89.0
Edgar Eastwood 65.0 70.0 85.0 91.0
Frances Forlon 75.0 79.0 86.0 95.0
George Gormley 66.0 80.0 87.0 96.0
Harvey Heath 67.0 81.0 88.0 97.0
Isabel Iona 97.0 95.0 85.0 90.0
Jason Jasper 99.0 95.0 85.0 100.0
Kate Klawson 90.0 92.0 94.0 96.0
Larry Longfellow 89.0 93.0 95.0 99.0
Mary Moore 42.0 72.0 76.0 79.0
Nancy Nusbaum 54.0 64.0 74.0 80.0
Oscar Omega 72.0 76.0 90.0 95.0
Paul Penguin 76.0 80.0 87.0 92.0
Quincy Qualuda 85.0 90.0 90.0 98.0
Roberta Ross 86.0 92.0 96.0 100.0
Sally Sucrose 71.0 81.0 85.0 84.0
Theresa Talbot 35.0 63.0 85.0 89.0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
