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 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
Get step-by-step solutions from verified subject matter experts
