Question: Problem to solve: A student took 5 courses and got an numeric grade for each course. We need to write a function called grading() to
Problem to solve: A student took 5 courses and got an numeric grade for each course. We need to write a function called grading() to decide the letter grade for each course for the student.
1. This function will prompt the student to enter numeric grade for each of the 5 courses he/she took. (Use loops)
2. This function uses structured conditionals (meaning compound if... elif...else statements) to assign letter grade to the numeric grade from user input
Here are the grading scale:
If grade is greater or equals to 90, print "letter grade is A"
If grade is greater of equals to 80, and less than 90, print "letter grade is B"
If grade is greater or equals to 70, and less than 80, print "letter grade is C"
If grade is greater or equals to 60, and less than 70, print "letter grade is D"
If grade is less than 60, print "letter grade is F"
3. For this function, grade will be represented using an integer
Submit the python code (the .py file in text format), and the screen capture of the output of running the program.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
