The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 2 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
In a gymnastics or diving competition, each contestant's score is calculated by dropping the lowest and highest scores and then adding the remaining scores. Write a Java program that allows the user to enter the number of judges (assume the number of judges can be as few as 5 and as many as 9), and prompt for each judges' score (a judge gives a core points between 1 and 10, with 1 being the lowest and 10 being the highest.) and then outputs the points received by the contestant. Format your output with two decimal places. For example, if there are 8 judges and the scores are 9.2, 9.3, 9.0, 9.9, 9.5, 9.5, 9.6, and 9.8, the contestant receives a total of 56.90 points. Requirements: 1. Write an algorithm for the program and include the algorithm in the beginning or at the end of your program as comments. 2. Prompt user to input information clearly with instructions to guide user entering proper data. Your program should have sufficient error checking to verify the input data, and reject the wrong data input from the user (e.g., a negative score or a score greater than 10, etc.) 3. Use array or arrays to implement the score calculation
-----------