C++ program Write a basketball program such that it implements a two-dimensional array for 5 players whose score is entered into the array. In the game of basketball, there are 5 players on a team, and each team plays a game consisting of four 12 minute quarters. Write a C++ program that assigns randomly the points scored for each player in each quarter and then displays them. The maximum number of points any player can possibly score in a quarter is 18. Therefore, you will need a to declare an array which stores the points scored per player per quarter or a total of 4X5 = 20 array elements. Once the points are displayed for each player per quarter, Have the program display the following: -Which players scored the most points in every particular quarter out of all quarters played -Which player scored the most points in any particular quarter out of all quarters played -Which player scored the most points in the entire game - List the best quarter that each player had in the entire game
C++ program
Write a basketball program such that it implements a two-dimensional array for 5 players whose score is entered into the array.
In the game of basketball, there are 5 players on a team, and each team plays a game consisting of four 12 minute quarters. Write a C++ program that assigns randomly the points scored for each player in each quarter and then displays them. The maximum number of points any player can possibly score in a quarter is 18. Therefore, you will need a to declare an array which stores the points scored per player per quarter or a total of 4X5 = 20 array elements. Once the points are displayed for each player per quarter, Have the program display the following:
-Which players scored the most points in every particular quarter out of all quarters played
-Which player scored the most points in any particular quarter out of all quarters played
-Which player scored the most points in the entire game
- List the best quarter that each player had in the entire game
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images