Question: Visual Studio C# Create a class called Student, representing a student in a class. The student will have properties for: first name (string), last name

Visual Studio C#

  1. Create a class called Student, representing a student in a class. The student will have properties for: first name (string), last name (string), student number (int), class number (int), and grade (string). Your class should have a constructor initiating the properties. Provide a property with a get and set accessor for any instance variables. If the student number and class number are negative, the set accessor should leave the instance variable unchanged. Acceptable grades are A, B, C, D, or F. Write a test app named StudentTest that demonstrates class Student's capabilities. Create two Student objects and display all properties available to the screen. Modify each object, changing the grade to another value. Then display each object's property again.
  2. When creating the Visual Studio project, set the project name to StudentObject.
  3. Add your name (Jonh Monte) and the date (1/31/21) as comments at the top of the code file.
  4. Comment your code as appropriate. Review examples in the book for proper use of comments.
  5. In the last line of program's main method, add Console.ReadKey(); to stop the programming from ending automatically.

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!