O File | C:/Users/codyh/Downloads/COMP%20B10%20Assignment%2003%20(polling%20station%20loop).pdf Sample runs: VOTER ELIGIBILITY AND POLLING STATION PROGRAM Enter your age (Type '0' to exit program): 19 Enter your residence's zip code: 93308 Your polling station is 863 Desmond Ct. Enter your age (Type '0' to exit program): 45 Enter your residence's zip code: 93301 Error - Unknown zip code. Enter your age (Type '0' to exit program): 18 Enter your residence's zip code: 93309 Your polling station is 7332 Del Canto Ct. Enter your age (Type '0' to exit program): 12 YOU ARE INELIGIBLE TO VOTE. Enter your age (Type '0' to exit program): 0 Run complete. Press the Enter key to exit. O Inside BC O COMS B10 – Structured Program X O File | C:/Users/codyh/Downloads/COMP%20B10%20Assignment%2003%20(polling%20station%20loop).pdf BRRE EZHE EA6 COMP B10 – INTRO TO PROGRAMMING METHODOLOGIES USING PYTHON Assignment #3 (Polling Station Loop) Create the Python program that will allow users to determine their voter polling station. Your program should be able to create a run that looks EXACTLY like the sample runs on the back. Your program should perform the following: 1. Print “VOTER ELIGIBILITY AND POLLING STATION PROGRAM" as your heading. 2. Print 2 blank lines. 3. Prompt the user for their age. Indicate to type zero *0' to exit the program. 4. Perform one of three actions: 1. If the user's age is less than 18, print “YOU ARE INELIGIBLE TO VOTE" and prompt again for their age and repeat the process. 2. If the user's age is 18 or older • Prompt the user for their residence's zip code • If the zip code is 93305 then print "Your polling station is 123 Panorama Drive." • If the zip code is 93306 then print “Your polling station is 6143 Fairfax Drive." • If the zip code is 93307 then print “Your polling station is 21121 B Street." • If the zip code is 93308 then print “Your polling station is 863 Desmond Ct." • If the zip code is 93309 then print “Your polling station is 7332 Del Canto Ct." • Print "Error – unknown zip code" if the zip code is not one of the above. • Prompt again for their age and repeat the process. 3. If the user entered 0' for their age, terminate the program in the normal method. Additional notes: You must use the program template for your program. • Upload a copy of your program source code to Canvas. Your messages and prompts must look EXACTLY like those in the sample. Duplicate all blank lines and spacing.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Having trouble writing this program any help would be appreciated 

O File | C:/Users/codyh/Downloads/COMP%20B10%20Assignment%2003%20(polling%20station%20loop).pdf
Sample runs:
VOTER ELIGIBILITY AND POLLING STATION PROGRAM
Enter your age (Type '0' to exit program): 19
Enter your residence's zip code: 93308
Your polling station is 863 Desmond Ct.
Enter your age (Type '0' to exit program): 45
Enter your residence's zip code: 93301
Error - Unknown zip code.
Enter your age (Type '0' to exit program): 18
Enter your residence's zip code: 93309
Your polling station is 7332 Del Canto Ct.
Enter your age (Type '0' to exit program): 12
YOU ARE INELIGIBLE TO VOTE.
Enter your age (Type '0' to exit program): 0
Run complete. Press the Enter key to exit.
Transcribed Image Text:O File | C:/Users/codyh/Downloads/COMP%20B10%20Assignment%2003%20(polling%20station%20loop).pdf Sample runs: VOTER ELIGIBILITY AND POLLING STATION PROGRAM Enter your age (Type '0' to exit program): 19 Enter your residence's zip code: 93308 Your polling station is 863 Desmond Ct. Enter your age (Type '0' to exit program): 45 Enter your residence's zip code: 93301 Error - Unknown zip code. Enter your age (Type '0' to exit program): 18 Enter your residence's zip code: 93309 Your polling station is 7332 Del Canto Ct. Enter your age (Type '0' to exit program): 12 YOU ARE INELIGIBLE TO VOTE. Enter your age (Type '0' to exit program): 0 Run complete. Press the Enter key to exit.
O Inside BC
O COMS B10 – Structured Program X
O File | C:/Users/codyh/Downloads/COMP%20B10%20Assignment%2003%20(polling%20station%20loop).pdf
BRRE EZHE
EA6
COMP B10 – INTRO TO PROGRAMMING METHODOLOGIES USING PYTHON
Assignment #3 (Polling Station Loop)
Create the Python program that will allow users to determine their voter polling station.
Your program should be able to create a run that looks EXACTLY like the sample runs on the
back.
Your program should perform the following:
1. Print “VOTER ELIGIBILITY AND POLLING STATION PROGRAM" as your heading.
2. Print 2 blank lines.
3. Prompt the user for their age. Indicate to type zero *0' to exit the program.
4. Perform one of three actions:
1. If the user's age is less than 18, print “YOU ARE INELIGIBLE TO VOTE" and
prompt again for their age and repeat the process.
2. If the user's age is 18 or older
• Prompt the user for their residence's zip code
• If the zip code is 93305 then print "Your polling station is 123 Panorama
Drive."
• If the zip code is 93306 then print “Your polling station is 6143 Fairfax
Drive."
• If the zip code is 93307 then print “Your polling station is 21121 B Street."
• If the zip code is 93308 then print “Your polling station is 863 Desmond Ct."
• If the zip code is 93309 then print “Your polling station is 7332 Del Canto
Ct."
• Print "Error – unknown zip code" if the zip code is not one of the above.
• Prompt again for their age and repeat the process.
3. If the user entered 0' for their age, terminate the program in the normal method.
Additional notes:
You must use the program template for your program.
• Upload a copy of your program source code to Canvas.
Your messages and prompts must look EXACTLY like those in the sample. Duplicate all
blank lines and spacing.
Transcribed Image Text:O Inside BC O COMS B10 – Structured Program X O File | C:/Users/codyh/Downloads/COMP%20B10%20Assignment%2003%20(polling%20station%20loop).pdf BRRE EZHE EA6 COMP B10 – INTRO TO PROGRAMMING METHODOLOGIES USING PYTHON Assignment #3 (Polling Station Loop) Create the Python program that will allow users to determine their voter polling station. Your program should be able to create a run that looks EXACTLY like the sample runs on the back. Your program should perform the following: 1. Print “VOTER ELIGIBILITY AND POLLING STATION PROGRAM" as your heading. 2. Print 2 blank lines. 3. Prompt the user for their age. Indicate to type zero *0' to exit the program. 4. Perform one of three actions: 1. If the user's age is less than 18, print “YOU ARE INELIGIBLE TO VOTE" and prompt again for their age and repeat the process. 2. If the user's age is 18 or older • Prompt the user for their residence's zip code • If the zip code is 93305 then print "Your polling station is 123 Panorama Drive." • If the zip code is 93306 then print “Your polling station is 6143 Fairfax Drive." • If the zip code is 93307 then print “Your polling station is 21121 B Street." • If the zip code is 93308 then print “Your polling station is 863 Desmond Ct." • If the zip code is 93309 then print “Your polling station is 7332 Del Canto Ct." • Print "Error – unknown zip code" if the zip code is not one of the above. • Prompt again for their age and repeat the process. 3. If the user entered 0' for their age, terminate the program in the normal method. Additional notes: You must use the program template for your program. • Upload a copy of your program source code to Canvas. Your messages and prompts must look EXACTLY like those in the sample. Duplicate all blank lines and spacing.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 1 images

Blurred answer
Knowledge Booster
Structure chart
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.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education