Question: Write a user defined function called gradeCalculator that takes one input argument, score (integer) and outputs grade (string) based on some conditions. The conditions need

Write a user defined function called gradeCalculator that takes one input argument, score (integer) and outputs grade (string) based on some conditions. The conditions need be checked using if, elif, else statements. The conditions are as follows: condition output If score is between 90 and 100 grade is A If score is between 80 and 89 grade is B If score is between 70 and 79 grade is C If score is between 60 and 69 grade is D If the score is between 0 and 59 grade is E Note: The bounds are inclusive. i.e, a score of 80 would get a B
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
