A group of four friends visit a sports club and they decide to practice archery. Each player
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 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 Answer:
Java How To Program Late Objects Version
ISBN: 9780136123712
8th Edition
Authors: Paul Deitel, Deitel & Associates