Question: Write in C# using visual studios. Create an application named TestSoccerPlayer that instantiates and displays a SoccerPlayer object. The SoccerPlayer class contains the following properties:

Write in C# using visual studios.

Create an application named TestSoccerPlayer that instantiates and displays a SoccerPlayer object. The SoccerPlayer class contains the following properties:

  • Name - The players name (a string)
  • JerseyNum - The player's jersey number (an integer)
  • Goals - Number of goals scored (an integer)
  • Assists - Number of assists (an integer)

In a loop, get input from the user for all the soccer players on a team: their name, jersey number, goals scored, and assists. Populate multiple instances of the SoccerPlayer object class with this information and then display a list of the entered information (in ascending sorted order by name) back to the user nicely formatted on screen.

Please don't forget the loop.

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!