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
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