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.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter14: Files And Streams
Section: Chapter Questions
Problem 1CP
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
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
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage