Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python 3***** 2- 8 pts: If the grading scale for a test is such that A = 90-100, B = 80-90, C = 70-79, and

Python 3*****

2- 8 pts: If the grading scale for a test is such that A = 90-100, B = 80-90, C = 70-79, and any number below 70 is F. Write a, called that takes one scalar input representing the grade of a student. Your function should determine the letter grade of the student based on the input. Example, if you run your program with grade = 85.6, the program should return the following: 85.6 , .

I have this so far:

def Lettergrade():

print('You scored',input' on the test, your letter grade is ')

if Lettergrade > 0 and Lettergrade < 70: print("F.") elif Lettergrade > 70 and Lettergrade <=80: print("C.") elif Lettergrade > 80 and Lettergrade <=90: print("B.") else: print("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

More Books

Students also viewed these Databases questions

Question

Organizing Your Speech Points

Answered: 1 week ago