Question: A group of four friends visit a sports club and they decide to practice archery. Each player gets 3 chances and in every chance they

A group of four friends visit a sports club and they decide to practice archery. Each player gets 3 chances and in every chance they can score between 0 to 10 points. The player with the maximum score after adding the scores obtained in all 3 chances wins.
Write an application that simulates this game and prints the scores of all four players in a tabular format and also prints which player won.

Each line in the table should contain the following:

1) The player number 

2) Their first chance score 

3) Their second chance score 

4) Their third chance score 

5) Their score after all three chances 

Use multidimensional arrays to store the scores of players in each chance.

Use the Secure Random number generation mechanism learnt in the previous chapter to generate scores between 0 and 10 for each player chance.

Step by Step Solution

3.42 Rating (165 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The required application can be developed using a 2D array to store each players score for three rou... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Java How To Program Late Objects Questions!