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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started