Originally posted by karajorma
Any halfway decent programmer should be able to write a program to do this in under an hour. I really can't see we they had a problem. As you say it is very simple.
lessee
this is QB, btw:
start:
CLS
input "official code supplied at entering voting place" ; code$
if code$ <> {insert special maths/time gizmo here} then goto cheat
print "press:"
print "1) for Democrat"
print "2) for republican"
print "3) for Green"
print "4) for some other idiot"
input ; vote%
if vote% is 1 then Dem% is Dem% + 1
if vote% is 2 then Rep% is Rep% + 1
if vote% is 3 then Gre% is Gre% + 1
if vote% is 4 then Idi% = Idi% + 1
goto start
cheat:
BEEP
print "you entered the wrong code, try again"
cheater% = cheater% + 1
if cheater% = 3 then goto killer
goto start
killer:
BEEP
BEEP
BEEP
print "you have mistyped 3 times, please calll for assistance from the staff"
do while x = x
input ; unlock%
if unlock% = 12312421 then goto start
next x
now, at the end of the day, the results could be counted out rather easily, but i'm too lasy to type file handling stuff.