The program is an Applet to computerize the scoring for Olympic diving.;The program will input the diver's name, the scores of the 5 judges, and the degree of difficulty as well select the city the diver is from. Each diver receives a score (0 - 10) from 5 judges. Dives have different degrees of difficulty ranging from 1.00 to 1.67;The Olympic image in is the AppletImages zip file in Doc Sharing. Put the Olympic image in the bin directory of the project.;Next the user enters the data;When the process diver button is clicked, the program will validate the data. Ensure that a name has been entered and a city has been selected. If not, display an error message box and set the focus back to that field using the requestFocus method.;If everything is valid, calculate the diver's score. The diver's score is calculated as follows: all five scores are added. The highest and lowest scores are always assumed to be skewed, or inaccurate, so they are dropped. Divide the resulting score by 3 and multiply that by the degree of difficulty. Add 1 to the number of divers, add the diver's score to the total divers score and calculate the average score of all divers. Count how many divers are from Dallas, Fort Worth, or other. Determine the top diver ? the one with the highest score. Display the results in the output labels. Clear the text fields, unselect the city, and set the focus to the name field using the requestFocus method. You will need to declare the number of divers, number of Dallas divers, number of Fort Worth divers, number of other divers, name of top diver, top diver's score and total divers score at the top of the applet class before any methods.
Paper#69521 | Written in 18-Jul-2015Price : $27