Question: Coding 4- Write the code that asks the user for their letter grade. If the letter grade is A, B, or C, print You passed.

Coding 4- Write the code that asks the user for their letter grade. If the letter grade is A, B, or C, print You passed. If the letter grade is D or F, print Take the class again. Print an error message if they have entered an invalid letter. Loop until they enter a valid grade letter. In your main module: ask for the letter grade, call a function to determine if pass or take again and print result. Your function should receive the letter grade and return the results for main to print.

In python please.

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!