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

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter14: Exception Handling
Section: Chapter Questions
Problem 4PE
icon
Related questions
Question

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

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Header Files
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT