Question: Using java methods Write a program which takes the grades from ten quizzes and computes the average quiz score. However, the teacher usually drops the
Write a program which takes the grades from ten quizzes and computes the average quiz score. However, the teacher usually drops the lowest two scores. You must take this into consideration when computing the average quiz grade. Your program must implement the following methods: readQuizScore: This method asks and reads one quiz score from the console, validates the score, and then returns the score. This method will be called once for each score. computeAverage: This method takes the ten scores as input, computes the average, and returns the average. getLowestscore: This method takes the ten scores as input and returns the lowest score of the tens cores. getSecondLowestscore: This method takes the ten scores as input, and returns the second lowest score of the ten scores. Display the two lowest scores, and the correct average. Input Validation: Each score must be a positive value between 0.0 and 100.0 Requirements: All four of the required methods must be implemented, and all must be correctly used within your program to get credit. Round the solution to two decimal places. Sample Execution: Enter the ten scores: 100.0 78.45 89.23 98.00 67.87 88.29 82. 67 87.50 90.56 94.38 Two Lowest Scores: 67.87 and 78.45 Average: 91.33
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
