Question: Its Java program class and using arrays and methods Concepts: Methods and one dimensional Arrays Write a Java Class that reads students grades and assigns
Its Java program class and using arrays and methods
Concepts: Methods and one dimensional Arrays Write a Java Class that reads students grades and assigns grades based on the following grading curve: Grade is A if the score is greater than or equal to the highest score 10. Grade is B if the score is greater than or equal to the highest score 20. Grade is C if the score is greater than or equal to the highest score 30. Grade is D if the score is greater than or equal to the highest score 40. Grade is F otherwise. The program will do the following: Prompt the user for the number of grades to be entered. The grades will all be integers. Read in the grades and store them in an array of the correct size. Call the method below (which you will create) to calculate and return the highest value in the Array. public static int findMax(int[] theArray) Call the method below (which you will create) to print a line for each grade in the format displayed in the sample output: public static void printGrades (int[] theArray, int highestGrade) Sample output: Enter the number of grades 4 Enter 4 grades separated by a space 40 55 70 58 Student 0 score is 40 and grade is C Student 1 score is 55 and grade is B Student 2 score is 70 and grade is A Student 3 score is 58 and grade is B
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
