Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

>> REGISTER NOW TO START POSTING

1. Java code assistance

Dear Team

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.

2. Re: Java code assistance

Hi! Welcome to the forum! Please read Announcements - What's Wrong With My Code?
what kind of help do you need? Are there any errors in your code?

3. Re: Java code assistance

Hi tony1 , you are not supposed to ask for full assignments and projects . First try them yourselves and if you are having problem then mention the example or part of code in which you are having problem, So someone can help you..