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

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!