Question: Write a C++ program that stores the following data about a soccer player in a structure : Players Name Players Number Points scored by the

Write a C++ program that stores the following data about a soccer player in a structure :

Players Name Players Number Points scored by the Player.

The program should keep an array of 11 of these structures. Each element is for a different player on team. The program must consist of the following functions :

1) The first function shows a table that lists each players number, players name, and points scored.

2) The second function must calculate and return the total points earned by the team.

3) The third must return and the name and the number of the player who has earned the most scored points.

4) The last function must sort the stored data in descending order based on pointes scored. Then the function must display sorted records.

 Write a C++ program that stores the following data about asoccer player in a structure : Players Name Players Number Points scoredby the Player. The program should keep an array of 11 of

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!