Question: Define a student class that supports the following fields. (Choose your own names for the fields/properties) id - int name - string grade - char

Define a student class that supports the following fields. (Choose your own names for the fields/properties)
id - int
name - string
grade - char
---
Properties:
ID - get
Name - get/set
Grade - get
---
Methods:
Constructor - Takes and int for id and string for name.
Set Grade (float score) - Sets the grade to a letter value based upon score, use a standard scale.
To String () - override To String to return Name + ID + Grade as a comma separated list
---
Main creates an object, set the grade and print it out using To String ()
C#

Step by Step Solution

3.39 Rating (168 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Using System namespace Application class Student private int id private string name private ch... View full answer

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

Document Format (1 attachment)

Word file Icon

1019-B-C-A-S-S(1345).docx

120 KBs Word File

Students Have Also Explored These Related Cost Accounting Questions!