Advertisement
Guest User

your homework

a guest
Feb 9th, 2013
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. print "VOTER ELIGIBILITY AND POLLING STATION PROGRAM"
  2. print
  3. print
  4. age= int(raw_input("Enter your age (Type ' 0 ' to exit program) :"))
  5. while age != 0:
  6. if age >= 18:
  7. zipcode= int(raw_input("Enter your residence's zip code:"))
  8. if zipcode == 93305:
  9. print "Your polling station is 123 Panorama Drive."
  10. elif zipcode == 93306:
  11. print "Your polling station is 6143 Fairfax Drive."
  12. elif zipcode ==93307:
  13. print "Your polling station is 21121 B Street."
  14. elif zipcode ==93308:
  15. print "Your polling station is 863 Desmond Ct."
  16. elif zipcode == 93309:
  17. print "Your polling station is 7332 Del Canto Ct."
  18. else:
  19. print "Error-unknown zip code"
  20. else:
  21. print "ineligible"
  22. age= int(raw_input("Enter your age (Type ' 0 ' to exit program) :"))
  23. raw_input("\nRun complete.Press the Enter key to exit.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement