Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

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

Step: 3

blur-text-image

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

Secrets Of Analytical Leaders Insights From Information Insiders

Authors: Wayne Eckerson

1st Edition

1935504347, 9781935504344

More Books

Students also viewed these Databases questions