Question: Write a program that prompts for the student's name, the number of exams, the exam score of each exam, and display the letter grade

Write a program that prompts for the student's name, the number of exams, the exam score of each exam, and display the letter grade for the student. Read the entire problem description before coding. Your program must have the following methods: readExamScores (int numExams) that reads the exam scores from the user and return the scores as an array of int. computeAverage (int[] examScores) that returns the average of all the exam scores in the array. computeLetterGrade (double average) that returns the letter grade for the average. 90 or better is 'A', 80 or better is 'B', 70 or better is 'C', 60 or better is 'D', D if below 60. main(String[] args) contains the main logic of the program such as getting the name of the student, the number of exams, calling the appropriate method to get the exam scores, the letter grade and printing the letter grade. Sample run: Same runs: Enter student's name: Mike Enter the number of exams: 3 Enter exam 1's score: 95 Enter exam 2's score: 80 Enter exam 3's score: 91
Step by Step Solution
There are 3 Steps involved in it
Java Program import javautilScanner public class StudentGrades public static void mainString args Sc... View full answer
Get step-by-step solutions from verified subject matter experts
