Question: use java code 1. Create a program that will ask he her user for a number of grades. 2. Create an array of doubles of

 use java code 1. Create a program that will ask he

use java code

1. Create a program that will ask he her user for a number of grades. 2. Create an array of doubles of that size. 3. Ask the user to input the values of each grade. 4. Create a static method that uses the sorting algorithm in class ( and none other) that can sort the array. 1. Call this sort method on the array to sort it 5. Report back to the user the Highest and the lowest grades. 6. Calculate the average grade in the array and report it back to the user. 1. Create a static method that will take an array as a parameter and return the average of the array as a double. Call this method in your main to show the answer 7. Ask the user if there is any grade the user would like to change. 1. The user will input the value of the grade they wish to change (not the index) 2. Youwill create a search and replace static method that will look for the first occurence of that number and swap it with the new grade for the user 3. For example if we had [100,20,30,20,75]. The user would specify they would like to change the 20 to a 60 . The array would then become [100,60,30,20,75] 4. After the grades are change print them out. This should be done by creating a static method to print the array with a foreach loop and calling it

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 Databases Questions!