You are on page 1of 2

START

PRINT "WHO WANTS TO BE A MILLIONAIRE?!"

LET total = 0
LET safe1 = 1000
LET safe2 = 32000

READ question$, chA$, chB$, chC$, chD$, answer$

PRINT question$
PRINT chA$
PRINT chB$
PRINT chC$
PRINT chD$
NEXT question%
INPUT "Answer:", reply$

ELSE reply$ = answer$ THEN


IF

PRINT "Yes, it's correct"

SELECT CASE question%


CASE 1: total = total + 100
CASE 2: total = total + 100
CASE 3: total = total + 100
CASE 4: total = total + 200
CASE 5: total = total + 500
CASE 6: total = total + 1000
PRINT "Sorry, you've got CASE 7: total = total + 2000
wrong answer, see ya!" CASE 8: total = total + 4000
CASE 9: total = total + 8000
CASE 10: total = total + 16000
CASE 11: total = total + 32000
CASE 12: total = total + 61000
CASE 13: total = total + 125000
CASE 14: total = total + 250000
CASE 15: total = total + 500000
END SELECT

C A B
A B
C

total = safe1 OR total = safe2 THEN No


IF

INPUT "Do you want to continue? (Y or N)"; Continue$

Continue$ = "N" THEN Yes


IF

total = 1000000 THEN No


IF

PRINT "Hang on... One million... Congratulations!!!


You've won the game! Sorry, there's no real money. :-p"

PRINT "Your total is..."


PRINT "$"; total

END

You might also like