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
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
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 avg the method will return ;
if avg the method will return ;
if avg the method will return ; and
if avg the method will return
Otherwise, the method will return F
d Write a method called findMaxGrade. The method will take an array of int
parameter and return the largest value from the array ie representing the larget
grade
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
