Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data, Mining, And Analytics Components Of Strategic Decision Making

Authors: Stephan Kudyba

1st Edition

1466568704, 9781466568709

More Books

Students also viewed these Databases questions

Question

=+What kinds of problems need to be overcome?

Answered: 1 week ago