Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started