Write a class called HomeworkSeven. All input and output using Dialog boxes. Nothing on the command line.

1. you will create a main method, a fillGrades method, a printGrades method, a sumGrades method, and a findAverage method, and a findMax method
2. fillGrades method should get input from the user to fill the contents of an array of doubles
• this method has one parameter, an array of doubles
• using a for loop, ask the user to enter the grades
• ask the user to enter as many grades as there are tests
• as the user enters each grade, assign it to an element of the myGrades array
• So prompt "Enter grade 1: "
• Assign the integer entered by the user to myGrades[0];
• prompt again: "Enter grade 2: "
• Assign the integer entered by the user to myGrades[1];
• and so on, until all the grades are entered and the array is full
3. printGrades method should print out the contents of an array of grades using ONE dialog box.
• this method has one parameter, an array of doubles
• this method will print out the contents of the array of doubles
• print out the contents of the array of doubles using ONE dialog box
• the output should look like this
• etc
• etc until the last grade is printed
• Remember to print all of the grades in ONE dialog box
• sumGrades has one parameter, an array of doubles
• this method will return a double, the sum of the numbers in the array
5. findAverage method
• This method has one parameter, an array of doubles
• this method will return a double, the average of the numbers in the array
6. findMax method
• findMax has one parameter, an array of doubles
• this method returns the maximum number that is in the array
7. in the main method
• do the following, in the order listed
• Ask the user how many tests he took
• print out "The number of tests taken is: ___
• declare and create an array of doubles called yourGrades
• the length of the yourGrades array is equal to the number of tests that has been input by the user
• At this point, each of the grades should be 0, because no grades have been entered by the user
• call the printGrades method again