Question: Write a program that asks the user for their grade (integers only from 0-100). Depending on the grade number, assign a letter grade. Le. 0.50:

 Write a program that asks the user for their grade (integers

Write a program that asks the user for their grade (integers only from 0-100). Depending on the grade number, assign a letter grade. Le. 0.50: F, 51.65: D, 6675: C, 76-85: B, 86-100: A. Use nested conditionals here. (Be sure to convert the string! Bonus: how would you handle cases where the user enters-1 or 101?)

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!