Classes Problems
Build a Grade Class
In this program, create a class called Grade that stores a numerical score and has an action to convert the score to a letter grade. Build this class in the grade.quorum tab in the editor. This class stores an integer score as a field. It must also have a setter and getter action for the score field. The setter action sets the score field and is called SetScore. The getter action gets the score field and is called GetScore. The last action this class needs is the ConvertToLetterGrade action, which returns a letter grade for the value stored in the score field. Build all of this in the grade.quorum tab.
The Main.quorum tab uses the Grade class to set the score and convert it to a letter grade. When you have made the Grade class, this program will output the following.
83 is a letter grade of B