Question: Using visual studio 2022 C++ Design a program that simulates a team roster of 5 players and calculates the average number of goals made by
Design a program that simulates a team roster of 5 players and calculates the average number of goals made by each player during the final 3 matches. You will need to create a 2D array to hold the players names. Your program will ask the user to enter each name using the keyboard and will store the information in the 2D array. You will need to create a 2D array to hold the players scores for the final 3 games. After storing the players names you will use a nested for loop to gather the number of goals made by each player for each of the three games. Finally your program should print out the team roster and list the average goals made by each team member
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
