Answered step by step
Verified Expert Solution
Question
1 Approved Answer
language is C# Step 1 - Create a new class and call it Student. Student class will have the following Class members. 1. A variable
language is C# Step 1 - Create a new class and call it Student. Student class will have the following Class members. 1. A variable of type string called name. 2. A variable of type int called section. 3. An array of double values called currentGrades. This array will represents all grades that a student currently has. (only declare this array here) Step 2 - From inside of the Program class create a void function which has a string value passed. The function will print Hello followed by the string value passed to it Step 3 - From inside of Main, create two Student Objects called studentOne and studentTwo. Assign each object a: 1. Unique literal value for name. ***assign one of them your own name 2. Unique literal value for section. 3. Initialize currentGrades with 4 unique double values. Step 4- From Inside of Main print off the name and section of each Student Object created in Step 3. Step 5- Change the name of studentTwo to Bob, then call the function created in Step 2 passing studentTwo's name. Step 6- Change the third grade from studentOne's currentGrades to 67.5. Step 7 Using a for loop print off each grade that studentOne has. Step 8 - Call the function created in Step 2 passing studentOne's name
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