Question
Python 3: create a method called calcLetterGrade(). This method uses it to determine the appropriate letter grade. Use the following logic: If the percentGrade (an
Python 3:
create a method called calcLetterGrade(). This method uses it to determine the appropriate letter grade. Use the following logic: If the percentGrade (an instance variable) is less than 60, assign letterGrade a value of F. Less than 70, should be D. Less than 80 should be C. Less than 90 should be B. 90 and above should be A. For example, if the objects percentGrade is 72, then invoking calcLetterGrade() on that object should assign the letterGrade variable of that object to C.
Finally create a method called printStudentInfo(). This method should create a string (using the format string technique), and return that string
If the user were to print out that string, it should look something like this:
Name: Lisa Jackson
Percent Grade: 93
Letter Grade: A
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