Question: Python 3: Create a class called Student. In that class, create instance variables for name, percentGrade, letterGrade . Create a get and set method for

Python 3:

Create a class called Student. In that class, create instance variables for name, percentGrade, letterGrade. Create a get and set method for each of these variables. The set methods should allow you to assign the value of variable. The get methods should simply return the values of the variables. Do NOT create a method called setLetterGrade(). Instead, you will create a method called calcLetterGrade()

Also create a method called addBonus() that takes one value that should represent a percentage (e.g. addBonus(10) should represent a 10 percent bonus). The method should add a bonus amount to the percentGrade variable. For example, if the percentGrade is 70, then addBonus(20) should add 20% (i.e. 14) to percentGrade to make is 84.

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!