The document discusses decision structures and Boolean logic in Python. It covers if, if-else, and if-elif-else statements for controlling program flow based on conditional logic. Relational and logical operators are explained for creating Boolean expressions to evaluate conditions. The chapter also discusses comparing strings, nested conditional structures, Boolean variables, and using conditional logic to determine turtle graphics properties and state in Python.
19. 1) Create an algorithm called exemptAlgorithm.txt
2) Create the source code called exempt.py
3) Upload your algorithm and source code to BCOnline.
Exempt
You will be writing a program to determine whether or not a
student is exempt from the final exam in COP1000C.
Your program should do the following:
• Prompt the user for a student’s average and number of days
missed.
Input Validation:
• Average must be between 0 and 100
• Number of days missed cannot be less than 0.
Be sure to validate each value separately!
• Use the following conditions to display a message
indicating whether or not a student is exempt from the final
exam. If exempt, indicate why.
o Average is at least 96
o Average is at least 93 and days missed are less than 3
o Average is at least 90 and student has perfect
attendance
Grading Rubric:
Algorithm (5) ______