I'm new to java and learning, I need help to complete one of my assignment it's due urgently
I have a task and need to write a program to assist with the scoring of a surfing competition. The organizers at this point are unsure of the exact number of judges or competitors, but they do know that there will be between 2 and 8 judges, and between 3 and 6 competitors. Each competitor is to be given a colour, red, blue, yellow, green, white, or black to compete under. (ie competitor # 1 is red, competitor # 2 is blue, etc. ) The judges enter a score for each competitor, the highest being the number of competitors, the lowest being 1. eg if there are 4 competitors, the winning score is 4, second is 3, third is 2 and forth (last) is 1.
If there were 4 competitors, a judge’s scorecard could look as follows:
Judge # 1
Competitor Red Blue Yellow Green
Score 2 1 4 3
This ranks the Yellow competitor 1st, Green 2nd, red 3rd and blue 4th or last.
At the end of the day, the organizers would like to be able to summarise the scores as follows:
- A histogram of the number of first places that each competitor scored
- A table of preferences that shows the number of times each place was awarded to the competitors (ie if competitor Blue was ranked second by three judges, the number 3 should appear in the table for 2nd place for the Blue competitor
- Total scores for each competitor.
They would also like to be able to print out the raw data of the final scores.
Your program should verify all data entered to ensure that only correct data types with in the expected ranges are entered. Your program should also give users the opportunity to choose how they wish to look at the data, and give them the option of looking at it more than once.