Write a program that stores the following data about a soccer player in a C++ structure record: Player name Player numbe
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Write a program that stores the following data about a soccer player in a C++ structure record: Player name Player numbe
Write a program that stores the following data about a soccer player in a C++ structure record: Player name Player number Goals scored The program should keep an array of 11 of these records. Each element holds the information for a different player on the team. Write a menu-driven interface program that will allow the user to: 1. Load team's information. Read data about the 11 players from a file indicated by the user. 2. Display team's roster. Show a table that lists each player's number, name, and points scored. 3. Display team's goals. Calculate and display the total goals scored by the team. 4. Display team's star(s). Show name of the player(s) who have earned the most points, along with the points earned. 5. Quit. Notes You may use the AtlantaUnited.txt file attached to the Unit 8 - Lab Assignment and Submission Folder, for testing purposes.
Choose one of the following options 1. Load team's information. 2. Display team's roster. 3. Display team's goals. 4. Display team's star(s). 5. Quit.
Total goals scored: 120 Choose one of the following options 1. Load team's information. 2. Display team's roster. 3. Display team's goals. 4. Display team's star(s). 5. Quit. Option: 4 Top team player(s): Josef Martinez ( 90 goals) Choose one of the following options 1. Load team's information. 2. Display team's roster. 3. Display team's goals. 4. Display team's star (s). 5. Quit. Option: 5