Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 scoredStep 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