Question: C# Programming: Create an application named TestSoccerPlayer that instantiates and displays a SoccerPlayer object. The SoccerPlayer class contains the following properties: - Name - The
C# Programming:
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)

***I've done the coding, but it doesn't work as you can see. I need help on why it's not accepting my answer***
TestSoccerPlayer.cs Instructions Back 1 using static System.Console; 2 class TestSoccerPlayer Create an application named TestSoccerPlayer that instantiates and displays a SoccerPlayer object. The SoccerPlayer class contains the following properties: Test Results 0/1 passed Unit Test 4 static void Main) SoccerPlayer sp- new SoccerPlayer("LioneL", 9, 8, 35); WriteLine("Name: [ersey Num: [1InGoals: 2 nAssists [3]", sp.Nane, sp.JerseyNum, sp.Goals, sp.Assists); .Name The player's name ( a string) onsole.ReadKey); FAILED: JerseyNun The player's jersey number (an integer) SoccerPlayer class defined correctly 12 class SoccerPlayer 13 14 public SoccerPlayer(string n, int j, int g, int a) 15 16 17 18 19 28 21 22 public string Name [get; set; 23 public int JerseyNum (get; set;) 24 public int Goals {get; set;) 25 public int Assists [get; set; 26 27 .Goals Number of goals scored (an BUILD STATUS integer) Assists -Number of assists (an integer) Bulld Falled BUILD OUTPUT Nane n JerseyNum j; Goals g; Assists a; 2 error(s), ? Compilation failed: warnings GRADING As you complete the steps above, you can use the Test button to check if the lab tests are passing. Once you are satisfied with the results, use the Grade button to save your score. CodevolveTest1086d6a4.cs (12,37): error CS1729: The type 'SoccerPlayer' does not contain a constructor that takes e' arguments TestSoccerPlayer.cs (14,13): (Location of the synbol related to previous error) TestSoccerPlayer.cs (9,7): error CS8183: The name ?Console' does not exist in the current context TEST CONTENTS TestFixture Run Code Test Grade
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
