2.2 Create a Java program that defines a method called "getGrade" that accepts an array of type double called myScores as a formal parameter. Using a for loop, the method iterates over the values of...


2.2 Create a Java program that defines a method called

Extracted text: 2.2 Create a Java program that defines a method called "getGrade" that accepts an array of type double called myScores as a formal parameter. Using a for loop, the method iterates over the values of the array elements and checks the score; a. if the score is at least 90.0, then the method displays the grade A, b. if the score is at least 80.0, then the method displays the grade B, c. if the score is at least 70.0, then the method displays the grade C, d. if the score is at least 60.0, then the method displays the grade D, e. otherwise, the method displays the grade F. In the Main () method, ask the user to enter the scores of five tests and store them in an array of type double. Then invoke the getGrade method by passing the array of user's score to display the grades.

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here