Sample Output: 7k Python Shell Eile Edit Shel Debug Options Windows Help > main( WELCOME TO THE FINAL EXAM EXEMPTION PROGRAM!! Enter the student' s class average: 97 Enter the number of days that the student missed: -10 Invalid Days missed cannot be less than 0. Enter the number of days that the student missed: 2 Congratulations! You are exempt from the final exam because your average is at least 96! >> main ( ) WELCOME TO THE FINAL EXAM EXEMPTION PROGRAM!! Enter the student's class average: 80 Enter the number of days that the student missed: 0 Sorry You are not exempt from the final exam! >>main () WELCOME TO THE FINAL EXAM EXEMPTION PROGRAM!! Enter the student's class average: 90 Enter the number of days that the student missed: 0 Congratulations! You are exempt from the final exam because your average is at least 90 and you had perfect attendance this semester! >>> main () WELCOME TO THE FINAL EXAM EXEMPTION PROGRAM!! Enter the student's class average: 95 Enter the number of days that the student missed: 2 Congratulations! You are exempt from the final exam because your average is at least 93 and you have not missed more than 2 days this semester! > main ( ) WELCOME TO THE FINAL EXAM EXEMPTION PROGRAM!! Enter the student's class average: -10 Invalid Average must be between 0 and 100. Enter the student's class average: 94 Enter the number of days that the student missed: 4 Sorry You are not exempt from the final exam! >>> Ln: 53 Col: 4

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

I need help with this problem I attatched the sample output

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

Sample Output:
7k Python Shell
Eile Edit Shel Debug Options Windows Help
> main(
WELCOME TO THE FINAL EXAM EXEMPTION PROGRAM!!
Enter the student' s class average: 97
Enter the number of days that the student missed: -10
Invalid
Days missed cannot be less than 0.
Enter the number of days that the student missed: 2
Congratulations!
You are exempt from the final exam because your average is at least 96!
>> main ( )
WELCOME TO THE FINAL EXAM EXEMPTION PROGRAM!!
Enter the student's class average: 80
Enter the number of days that the student missed: 0
Sorry
You are not exempt from the final exam!
>>main ()
WELCOME TO THE FINAL EXAM EXEMPTION PROGRAM!!
Enter the student's class average: 90
Enter the number of days that the student missed: 0
Congratulations!
You are exempt from the final exam because your average is at least 90 and
you had perfect attendance this semester!
>>> main ()
WELCOME TO THE FINAL EXAM EXEMPTION PROGRAM!!
Enter the student's class average: 95
Enter the number of days that the student missed: 2
Congratulations!
You are exempt from the final exam because your average is at least 93 and
you have not missed more than 2 days this semester!
>
main ( )
WELCOME TO THE FINAL EXAM EXEMPTION PROGRAM!!
Enter the student's class average: -10
Invalid
Average must be between 0
and 100.
Enter the student's class average: 94
Enter the number of days that the student missed: 4
Sorry You are not exempt from the final exam!
>>>
Ln: 53 Col: 4
Transcribed Image Text:Sample Output: 7k Python Shell Eile Edit Shel Debug Options Windows Help > main( WELCOME TO THE FINAL EXAM EXEMPTION PROGRAM!! Enter the student' s class average: 97 Enter the number of days that the student missed: -10 Invalid Days missed cannot be less than 0. Enter the number of days that the student missed: 2 Congratulations! You are exempt from the final exam because your average is at least 96! >> main ( ) WELCOME TO THE FINAL EXAM EXEMPTION PROGRAM!! Enter the student's class average: 80 Enter the number of days that the student missed: 0 Sorry You are not exempt from the final exam! >>main () WELCOME TO THE FINAL EXAM EXEMPTION PROGRAM!! Enter the student's class average: 90 Enter the number of days that the student missed: 0 Congratulations! You are exempt from the final exam because your average is at least 90 and you had perfect attendance this semester! >>> main () WELCOME TO THE FINAL EXAM EXEMPTION PROGRAM!! Enter the student's class average: 95 Enter the number of days that the student missed: 2 Congratulations! You are exempt from the final exam because your average is at least 93 and you have not missed more than 2 days this semester! > main ( ) WELCOME TO THE FINAL EXAM EXEMPTION PROGRAM!! Enter the student's class average: -10 Invalid Average must be between 0 and 100. Enter the student's class average: 94 Enter the number of days that the student missed: 4 Sorry You are not exempt from the final exam! >>> Ln: 53 Col: 4
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 9 steps with 7 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY