Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Specification: Using Python3 write a program that prompts the user for a score, convert it into an integer and print the letter grade for that

Specification: Using Python3 write a program that prompts the user for a score, convert it into an integer and print the letter grade for that score in this course.

You should use a single if statement for this assignment.

Your if statement should not print anything, but should set a variable that is used in a final print statement at the end of the program.

Add comments in your code.

Use the following grading criteria:

A > 100 - 93
A - 92 - 90
B + 89 - 86
B 85 - 83
B - 82 - 80
C + 79 - 76
C 75 - 73
C - 72 - 70
D + 69 - 66
D 65 - 63
D - 62 - 60
F < 60

Testing: Your output should look something like this $ python3 hw4.py What is your score? 100 The grade for a score of 100 is A

$ python3 hw4.py What is your score? 92 The grade for a score of 92 is A-

$ python3 hw4.py What is your score? 89 The grade for a score of 89 is B+

$ python3 hw4.py What is your score? 85 The grade for a score of 85 is B

$ python3 hw4.py What is your score? 82 The grade for a score of 82 is B-

$ python3 hw4.py What is your score? 79 The grade for a score of 79 is C+

$ python3 hw4.py What is your score? 75 The grade for a score of 75 is C

$ python3 hw4.py What is your score? 72 The grade for a score of 72 is C-

$ python3 hw4.py What is your score? 69 The grade for a score of 69 is D+

$ python3 hw4.py What is your score? 65 The grade for a score of 65 is D

$ python3 hw4.py What is your score? 62 The grade for a score of 62 is D-

$ python3 hw4.py What is your score? 59 The grade for a score of 59 is F

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

Database Systems A Practical Approach To Design Implementation And Management

Authors: THOMAS CONNOLLY

6th Edition

9353438918, 978-9353438913

More Books

Students also viewed these Databases questions