Hi, I tried to make a handy conversion program, where you are taken to a menu, from there you choose the conversion tool and then use it. No matter what I do I get a syntax error.
Here is the code:
do
choice:
input "Which gadget do you wish to use: <c>entigrade to farenheight, <ca>lculator or <p>ounds to dollars. To exit type 'e'", $choice
if $choice = c
goto cent
if $choice = ca
goto calc
if $choice = p
goto pound
if $choice = e
print "3"
wait 1000
print "2"
wait 1000
print "1"
wait 1000
print "0"
wait 1000
end
else
print "Not a valid choice"
goto choice
endif
calc:
print "welcome to the calculator, type 'menu' to go to menu. "
do
input calculation#
wait 500
print calculation#
loop
if str$(calculation#) = "menu" then goto choice
endif
pound:
print "welcome to the pounds to dollars translator, type 'menu' to go to menu. "
dollars# = pounds#*1.6504
do
input pounds#
wait 500
print pounds#;" pounds is equal to "; dollars#;"."
LOOP
if str$(pounds#) = "menu" then goto choice
endif
cent:
print "welcome to the centigrade to farenheight translator, type 'menu' to go to the menu. "
farenheight# = centegrade#*1.8+32
do
input centegrade#
print str$(centegrade#);" centegrade is equal to "; farenheight#; " farenheight."
loop
if str$(centegrade#) = "menu"
goto choice
endif
Luke Eric Roy Davison