Question: Java Please solve correctly, the one posted here has 11 mistakes. Write a Java program to compute the prizes to be distributed for the top
Java
Please solve correctly, the one posted here has 11 mistakes.
Write a Java program to compute the prizes to be distributed for the top 3 winners of a competition. The program has to prompt the user to enter the number of competitors participating in the competition and the participation fees required by each competitor. The total of the collected participation fees is distributed as prizes for the top 3 winners as follows: First winner gets 50%. Second winner gets 30%. Third winner gets 20%. The program has to display the total prizes (totalprizes= nbrCompetitors * Participation Fees) to distribute and the prize to distribute for each of the top 3 winners. Sample Runl: How many competitors are participating: 21 What are the participation fees for each competitor: 27 Total prizes: $577.5 First winner prize: $288.75 1/ (total prizes * 0.5) Second winner prize: $173:25...W (total prizes * 0.3) Third winner prize: $115.5 // (total prizes * 0.2) Sample Run 2 : How many competitors are participating: 10 What are the participation fees for each competitor: 25.0 Total prizes: $250.0 First winner prize: $125.0 Second winner prize: $75.0 Third winner prize: $50.0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
