Write a program that stores the following data about a


Assignment

Write a program that stores the following data about a soccer player in a structure: Player's name, Player's 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. The program should ask the user to enter information for each player. It should then display a table that lists each player's number, name and points scored. The program should also calculate and display the total points earned by the team. The program should also determine which player earned the most points on the team and display that player's information. Validation: Do not accept negative values for player's number or points scored.

• Program must have the following functions

o void getPlayerInfo(Player &);
o void showInfo(Player);
o int getTotalPoints(Player [], int);
o void showHighest(Player [], int);

• The input and output should look like the following screen shot except it should work for 12 players.

Attachment:- Screen-Shot.pdf

Solution Preview :

Prepared by a verified Expert
Programming Languages: Write a program that stores the following data about a
Reference No:- TGS02456280

Now Priced at $35 (50% Discount)

Recommended (98%)

Rated (4.3/5)