Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

Java Program import javautilScanner public class StudentGrades public static void mainString args Sc... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Java Programming And Data Structures Comprehensive Version

Authors: Y. Daniel Liang

12th Edition

0136520235, 978-0136520238

More Books

Students also viewed these Programming questions

Question

What is NETosis? and describe the mechanism of each type

Answered: 1 week ago