Question: please make it simple using c++ xcode or any c++ tool.. Write a program that stores the following data about a soccer player in a
please make it simple using c++ xcode or any c++ tool..
Write a program that stores the following data about a soccer player in a structure:
Players Name
Players Number
Points scored by Player
The program should keep an array of 12 of these structures. Each element is for a different player on a team. When the program runs, it should ask the user to enter the data for each player. It should then show a table that lists each players number, name, and points scored. The program should also calculate and display the total points earned by the team. The number and name of the player who are earned the most points should also be displayed.
Notes:
Name your structure player
Create a function that gathers the information for a player from the user
Create a function that displays a player structure for the table
Sample Output:
PLAYER
---------
Player's name: Ella
Player's number: 23
Points scored: 53
PLAYER
---------
Player's name: John
Player's number: 13
Points scored: 32
PLAYER
---------
Player's name: James
Player's number: 42
Points scored: 13
PLAYER
---------
Player's name: Frankie
Player's number: 82
Points scored: 14
PLAYER
---------
Player's name: Lindsey
Player's number: 84
Points scored: 24
PLAYER
---------
Player's name: Gabriel
Player's number: 46
Points scored: 24
PLAYER
---------
Player's name: Ruth
Player's number: 62
Points scored: 34
PLAYER
---------
Player's name: Fred
Player's number: 73
Points scored: 9
PLAYER
---------
Player's name: Molly
Player's number: 47
Points scored: 32
PLAYER
---------
Player's name: Nick
Player's number: 99
Points scored: 11
PLAYER
---------
Player's name: Karen
Player's number: 96
Points scored: 23
PLAYER
---------
Player's name: Terry
Player's number: 44
Points scored: 6
NAME NUMBER PTS SCRD
Ella 23 53
John 13 32
James 42 13
Frankie 82 14
Lindsey 84 24
Gabriel 46 24
Ruth 62 34
Fred 73 9
Molly 47 32
Nick 99 11
Karen 96 23
Terry 44 6
TOTAL POINTS: 275
The player who scored the most points is: Ella
Press any key to continue . . .
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
