Question: Write the code in C++. 27: Write a program that stores the following data about a Soccer player in a structure: struct SoccerPlayer { char

 Write the code in C++. 27: Write a program that stores

Write the code in C++.

27: Write a program that stores the following data about a Soccer player in a structure: struct SoccerPlayer { char PlayerName [20]; int Player_Number; int Points_Scored; The program should keep a dynamic array of these structures. Each element is for a different player of the team. When the program runs it should display a menu asking the user to enter the data. The menu should provide the following options: I) Add new players' information: It will add information of a new player. 2) Insert a new player: It will insert information at the desired location. (for example at index 2). 3) Delete the player's information (Example: Delete player at index - 5) 4) Display Player information: Display information in a tabular format (for all players) 5) Display: The number and name of the player who has earned the most points should also be displayed. Input Validation: Do not accept negative values for players' numbers or points scored

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!