Question: 1 . I n java, Create a program named ArraysAndMethods.java: Ask the computer user to enter the total number of scores to store. Based on

1.In java, Create a program named ArraysAndMethods.java:
Ask the computer user to enter the total number of scores to store.
Based on the total number of scores entered, ask for each score.
Each grade shall be stored in an array of ints in their respective subscript.
After the array is populated with the grades, perform the sum, average, and the final
grade.
Part II: Method Definition
(a) Write a method named print (). This method will take an array of int as a parameter and print the content of the array provided in the parameter. In other words,
the method will use a loop and print the content of each subscript from the array.
(Hint: you can use the enhanced loop.)
(b) Write a method called getAVG(). The method will take an array of int as a pa
rameter and return a double (representing the calculated average). Hint: you
use the getSum() method implemented in a different practice.
(c) Write a method called getGradeByAVG (). This method will take a double as 2
parameter (avg). Based on this parameter, the method will calculate the letter grade.
The method will return a character representing the letter grade. For example,
if 90.0 avg 100.0, the method will return A;
if 80.0 avg <90.0, the method will return B;
if 70.0 avg <80.0, the method will return C; and
if 60.0avg<70.0, the method will return D.
Otherwise, the method will return F .
(d) Write a method called findMaxGrade. The method will take an array of int 8
parameter and return the largest value from the array (i.e., representing the larget
grade).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!