Hippie Dude,
Sorry for replying on an old post, but i edited your program so that it works correctly.
start:
cls
ink RGB(255,128,0),RGB(0,0,255):set text size 20 :
set text size 30 : set cursor 160,0:Print "Math Helpers"
Ink RGB(255,255,255),RGB(0,0,0):set text size 15
set cursor 0,60:Print "Functions:"
set cursor 0,80:Print "#1 Find the Area and Perimeter of a rectangle"
set cursor 0,100:Print "#2 Find circumference and area of a circle"
set cursor 0,120:Print "#3 Do a function between 2 numbers"
set cursor 0,140:Print "#4 Solve a basic equation"
set cursor 0,160:Print "#5 Add/Sub 2 polynomials"
set cursor 0,180:Print "#6 Find the Cosine, sine, or Tangent of a number"
set cursor 0,200:Print "#7 Find the exponential value of a number(not working yet)"
set cursor 0,220:Input "Choice(insert the number you want to do): ",F
if F=1
goto rec
endif
if F=2
goto cir
endif
if F=3
goto tnum
endif
if F=4
goto be
endif
if F=5
goto asp
endif
if F=6
goto cst
endif
if F=7
set cursor 0,240
PRINT "This choice is currently not working."
wait 1500
goto start
endif
goto start
rec:
cls
ink RGB(255,128,0),RGB(0,0,255)
Set cursor 0,0:Print "Finding the area and perimeter of a rectangle:"
Ink RGB(255,255,255),RGB(0,0,0)
Set cursor 0,20:Input "Height= ",H#
Set cursor 0,40:Input "Width= ",W#
Per#=2*H#+2*W#
Area#=H#*W#
Set cursor 0,60:Print "The perimeter is ",Per#
set cursor 0,80:Print "The area is ",Area#
set cursor 0,100:Print "(Press any key to go back)"
wait key
goto start:
cir:
cls
ink RGB(255,128,0),RGB(0,0,255)
set cursor 0,0:Print "Finding the circumference and area of a circle:"
Ink RGB(255,255,255),RGB(0,0,0)
set cursor 0,24:input "Do you know the diameter or the radius(D for diameter and R for Radius) ",dr$
cls
if dr$="D" or dr$="d"
set cursor 0,0:Input "The diameter is ",d#
r#=d#/2
endif
if dr$="R" or dr$="r"
set cursor 0,0:Input "The radius is ",r#
endif
Circ#=R#*2*3.14
carea#=3.14*R#*R#
set cursor 0,20:Print "The circumference is approx. ",Circ#
set cursor 0,40:Print "The area is approx. ",carea#
set cursor 0,60:Print "(Press any key to go back)"
wait key
goto start:
tnum:
cls
ink RGB(255,128,0),RGB(0,0,255)
set cursor 0,0:Print "Do a function between 2 numbers:"
Ink RGB(255,255,255),RGB(0,0,0)
Set cursor 0,20:input "First Number= ",f#
set cursor 0,40:input "Second Number= ",s#
set cursor 0,60:input "Function= ",func$
If func$="+"
answer#=f#+s#
endif
if func$="-"
answer#=f#-s#
endif
if func$="*"
answer#=f#*s#
endif
if func$="/"
answer#=f#/s#
endif
set cursor 0,80:Print "The answer is ",answer#
set cursor 0,100:Print "(Press any key to go back)"
wait key
goto start:
be:
cls
ink RGB(255,128,0),RGB(0,0,255)
set cursor 0,0:Print "Do a basic equation:"
Ink RGB(255,255,255),RGB(0,0,0)
set cursor 0,20:Input "First number: ",F#
set cursor 0,40:Input "Function: ",func$
set cursor 0,60:Input "Variable(letter): ",var$
Set cursor 0,80:Input "Answer to equation: ",equal#
Set cursor 0,100:Print F#,func$,var$,"=",equal#
set cursor 0,120:Input "Is this correct problem?(Y for yes and N for No) ",correct$
if correct$="N" or correct$="n"
cls
goto be:
endif
If correct$="Y" or correct$="y"
goto cont:
endif
cont:
If func$="+"
var#=equal#-F#
endif
If func$="-"
var#=(equal-F#)*-1
endif
if func$="*"
var#=equal#/F#
endif
if func$="/"
var#=equal#*F#
endif
Set cursor 0,140:Print var$,"=",var#
Set cursor 0,160:Print "(Press any key to go back)"
wait key
goto start:
asp:
cls
ink RGB(255,128,0),RGB(0,0,255)
Set cursor 0,0:Print "Add/Sub 2 Polynomials:"
Ink RGB(255,255,255),RGB(0,0,0)
set text to italic
Set cursor 0,20:Print "First Polynomial:"
set text to normal
set cursor 0,40:Input "Quadratic Term: ",quad1#
set cursor 0,60:Input "Linear Term: ",lin1#
set cursor 0,80:Input "Constant Term: ",con1#
set text to italic
set cursor 0,100:Print "Second Polynomial:"
set text to normal
set cursor 0,120:Input "Quadratic Term: ",quad2#
set cursor 0,140:Input "Linear Term: ",lin2#
set cursor 0,160:Input "Constant Term: ",con2#
set cursor 0,180:Input "What function do you want between them? ",func$
if func$="+"
set cursor 0,200:Print quad1#,"x2 + ",lin1#,"x + ",con1#," + ",quad2#,"x2 +",lin2#,"x + ",con2#
endif
if func$="-"
set cursor 0,220:Print quad1#,"x2 + ",lin1#,"x + ",con1#," - (",quad2#,"x2 + ",lin2#,"x + ",con2#,")"
endif
set cursor 0,240:Input "Is this your equation?(Y for yes and N for No) ",correct$
If correct$="N" or correct$="n"
goto asp:
endif
If correct$="Y" or correct$="y"
goto cont2:
endif
cont2:
if func$="+"
quad3#=quad1#+quad2#
lin3#=lin1#+lin2#
con3#=con1#+con2#
endif
if func$="-"
quad3#=quad1#-quad2#
lin3#=lin1#-lin2#
con3#=con1#-con2#
endif
Set cursor 0,260:Print "Your answer is ",quad3#,"x2 + ",lin3#,"x + ",con3#
Set cursor 0,280:Print "(Press any key to go back)"
wait key
goto start:
cst:
cls
ink RGB(255,128,0),RGB(0,0,255)
Set cursor 0,0:Print "Find the Cosine, Sine, or Tangent of a number:"
Ink RGB(255,255,255),RGB(0,0,0)
set cursor 0,20:input "What do you want to compute?(C for cosine, S for sine, T for tangent) ",cst$
If cst$="C" or cst$="c"
cls
ink RGB(255,128,0),RGB(0,0,255)
Set cursor 0,0:Print "Find the Cosine of a number:"
Ink RGB(255,255,255),RGB(0,0,0)
Set cursor 0,20:Input "Your number: ",num#
cos#=Cos(num#)
set cursor 0,40:Print "The Cosine is ",cos#
set cursor 0,60:Print "(Press any key to go back)"
wait key
goto start:
endif
If cst$="S" or cst$="s"
cls
ink RGB(255,128,0),RGB(0,0,255)
Set cursor 0,0:Print "Find the Sine of a number:"
Ink RGB(255,255,255),RGB(0,0,0)
Set cursor 0,20:Input "Your number: ",num#
Sin#=Sin(num#)
set cursor 0,40:Print "The Sine is ",Sin#
set cursor 0,60:Print "(Press any key to go back)"
wait key
goto start:
endif
If cst$="T" or cst$="t"
cls
ink RGB(255,128,0),RGB(0,0,255)
Set cursor 0,0:Print "Find the Tangent of a number:"
Ink RGB(255,255,255),RGB(0,0,0)
Set cursor 0,20:Input "Your number: ",num#
tan#=tan(num#)
set cursor 0,40:Print "The Tangent is ",Tan#
set cursor 0,60:Print "(Press any key to go back)"
wait key
goto start:
endif
goto cst:
I'm not sure if the answers to the problems are correct, but it is now useable.