Question: Create a python script that evaluates if a user's grade is a passing or failing grade. Takes a grade as user input ( 2 pts

Create a python script that evaluates if a user's grade is a passing or failing grade.
Takes a grade as user input (2 pts)
If the input is not between 0 and 100, display "invalid grade" (3 pts)
If the grade is a failing grade (<70), print "come to office hours!" (3 pts)
If the grade is a passing grade (>=70), prints passing.(3 pts)
It has an infinite while loop (while 1) and keeps asking for input until the input is q and
then it breaks (4 pts)
Name the file "grades.py"(1 pts)
Has a nested if statement (7 pts)
Exits using break(7 pts)
Example Inputs/Outputs:
>> Enter a numerical grade: 70
Passing!
>> Enter a numerical grade: 400
Invalid Grade
>> Enter a numerical grade: 45
Come to office hours!

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 Programming Questions!