Question: Write a program that keeps track of students' grades for 5 tests. You will use 3 arrays. The first array will be an array
Write a program that keeps track of students' grades for 5 tests. You will use 3 arrays. The first array will be an array of integers that has the values 1 to 5 assigned to its elements. The second array has the test score corresponding to the score of each test and has the following values: 75, 80, 77, 79, 82. The third array is an array of strings with the letter grade of each test. Write a program that: 1. Creates and declares each array and assigns the values 2. Prints a table with test number, scores and letter grades 3. Prints the highest score, the lowest score, the average and the final letter grade For example: Test Score Grade 1 75 C 2 80 B 3 77 C 79 C 5 82 B Your average is 78.6 Your highest score was 82 Your lowest score was 75 Your final grade is a C Be sure that your program calculates the solutions, so that it will run for different inputs for score.
Step by Step Solution
3.42 Rating (149 Votes )
There are 3 Steps involved in it
public class StudentGrades public static void mainString args 1 Creates and declares each array and ... View full answer
Get step-by-step solutions from verified subject matter experts
