Answered step by step
Verified Expert Solution
Link Copied!

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++
image text in transcribed
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Horse Betting The Road To Absolute Horse Racing 2

Authors: NAKAGAWA,YUKIO

1st Edition

B0CFZN219G, 979-8856410593

More Books

Students also viewed these Databases questions