Design a soccerplayer class includes three integer field


Discussion:

Complete the following tasks:

a. Design a SoccerPlayer class that includes three integer fields: a player's jersey number, goals, and assists. Overload extraction and insertion operators for the class.

b. Include an operator> () function for the class. One SoccerPlayer is considered greater than another if the sum of goals plus assists is greater.

c. Create an array of 11 SoccerPlayers, then use the > operator to find the player who has the greatest total of goals plus assists.

 

 

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Design a soccerplayer class includes three integer field
Reference No:- TGS01937914

Now Priced at $25 (50% Discount)

Recommended (92%)

Rated (4.4/5)