Question: C++ Problem 2: You have three parallel arrays, which holds the names, jersey numbers, and ages of 5 players on a soccer team: string name[5]

C++
Problem 2: You have three parallel arrays, which holds the names, jersey numbers, and ages of 5 players on a soccer team: string name[5] = {"Amos","Yancy","Tim","Kim","Malia") int number[5] = {45,10,23,27,99) . int age[5] (23,18,30,17,21) Details: . / Creates a data structure call "Player" that has members name, number, and age. Create an array of 5 "Player" structures to hold the data from the parallel arrays. Use loop(s) to place the data the arrays into the "Player" structure. Create a function display that takes as parameters a pointer to "Player" data structure and the number of players, then print out the data from the "Player" structure
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
