Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 itStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started