Suppose a teacher has five students who have taken four tests. The teacher uses the following grading scales to assign a letter grade to a student, based on the average of his or her four test scores.
Test Score
Letter Grade
90-100
A
80-89
B
70-79
C
60-69
D
0-59
F
Create an application that uses an array of strings to hold the five student names, an array of five strings to hold each student’s letter grades, and five arrays of four single precision numbers to hold each student’s set of test scores.
Equip the application with a set of buttons that allows the application to perform the following:
Input validation: Do not accept test scores less than zero or greater than 100.
Comments
Leave a comment