design the python program solution to solve the problem of determining a student's letter grade given the final score as an integer. Your program should have the following modules: def main() - the general flow of the program. def getFinalScore() - this function should ask for input from the user. The function should raise an exception if the score is not an int and should also raise an exception if the score is outside the range of 0 and 100. The program should return the score entered by the user if no exception is raised. def determineLetter(score) - this module should accept a score variable and check/print if the letter grade is A (90 - 100), B (80 - 89), C (70 - 79), D (60 - 69) or F (0 - 59). Remember to call main at the end of the module definitions
design the python program solution to solve the problem of determining a student's letter grade given the final score as an integer.
Your program should have the following modules:
def main() - the general flow of the program.
def getFinalScore() - this function should ask for input from the user. The function should raise an exception if the score is not an int and should also raise an exception if the score is outside the range of 0 and 100. The program should return the score entered by the user if no exception is raised.
def determineLetter(score) - this module should accept a score variable and check/print if the letter grade is A (90 - 100), B (80 - 89), C (70 - 79), D (60 - 69) or F (0 - 59).
Remember to call main at the end of the module definitions
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images