You are on page 1of 5

cls

print"*****************************************************************"
print"*****************************************************************"
print"*****************************************************************"
print"***** ******"
print"***** ******"
print"***** ******"
print"***** ******"
print"***** GOOD DAY! WELCOME TO THIS PROGRAM! ******"
print"***** ******"
print"***** ******"
print"***** ******"
print"***** Press any key to continue to the menu ******"
print"***** ******"
print"***** ******"
print"***** ******"
print"*****************************************************************"
print"*****************************************************************"
print"*****************************************************************"
input"";key
goto[mymenus]

[mymenus]
cls
print"Choices:"
print" a.)Proceed to computation"
print" b.)Quit the program"

let answer1$="a"
let answer2$="b"
let answer$=""
input"Type the letter of your choice : ";answer$
if answer1$=answer$ then
goto[a]
end if
if answer2$=answer$ then
goto[b]
end if

[a]
cls
Print"Computation"
let number1$="0"
let number2$="0"
input"Type any number :";number1$
input"Type another number :";number2$
goto[menus2]

[menus2]
print"Choices:"
print" c.)Help"
print" d.)Proceed"

let answer3$="c"
let answer4$="d"
let answer$=""
input"Choose a letter : ";answer$
if answer3$=answer$ then
goto[c]
end if
if answer4$=answer$ then
goto[d]
end if
[c]
cls
print"<<<<<<some help>>>>> para pansin"

print"Choices:"
print" e.)Proceed to the computation"
print" f.)Go back to main section"
let answer5$="e"
let answer6$="f"
let answer$=""
input"Choose a letter : ";answer$
if answer5$=answer$ then
goto[e]
end if
if answer6$=answer$ then
goto[f]
end if

[e]
goto [d]

[f]
goto[mymenus]
[b]
cls
let ans1$="y"
let ans$=""
input"Do you really want to quit the program? [y/n]:";ans$
If ans$=ans1$ then
print"The program was ended"
end
else
goto [mymenus]
end if

[d]
let n$="0"
let a1$=""
let an$=""
input"Input the value of a1:";a1
input"Input the value of an:";an
input"Input the value of n subtracted by 1:";n
d=(an-a1)/n
print"The value of d is ";d

print"Choices:"
print" g.)compute for the difference between an and a1"
print" h.)proceed o the computation of 3 medians"
let answer7$="g"
let answer8$="h"
let answer$=""
input"Choose a letter : ";answer$
if answer7$=answer$ then
goto[g]
end if
if answer8$=answer$ then
goto[h]
end if

[g]
print"an=a1+(n1-1)d"
print"a2=";a1;"+(2-1)";(d)
print"a2= ";a1+(2-1)*d
print""
print"an=a1+(n1-1)d"
print"a3=";a1;"+(3-1)";(d)
print"a3= ";a1+(3-1)*d
print""
print"an=a1+(n1-1)d"
print"a4=";a1;"+(4-1)";(d)
print"a4= ";a1+(4-1)*d
print""
print"an=a1+(n1-1)d"
print"a5=";a1;"+(5-1)";(d)
print"a5= ";a1+(5-1)*d

print" ";a1;",";a1+(2-1)*d;",";a1+(3-1)*d;",";a1+(4-1)*d;",";a1+(5-1)*d

print"Choices:"
print" i.)Try again"
print" j.)End program"
let answer9$="i"
let answer10$="j"
let answer$=""
input"Choose a letter : ";answer$
if answer9$=answer$ then
goto[i]
end if
if answer10$=answer$ then
goto[j]
end if
[h]
print"an=a1+(n1-1)d"
print"a2=";a1;"+(2-1)";(d)
print"a2= ";a1+(2-1)*d
print""
print"an=a1+(n1-1)d"
print"a3=";a1;"+(3-1)";(d)
print"a3= ";a1+(3-1)*d
print""
print"an=a1+(n1-1)d"
print"a4=";a1;"+(4-1)";(d)
print"a4= ";a1+(4-1)*d
print""
print"an=a1+(n1-1)d"
print"a5=";a1;"+(5-1)";(d)
print"a5= ";a1+(5-1)*d

print" ";a1;",";a1+(2-1)*d;",";a1+(3-1)*d;",";a1+(4-1)*d;",";a1+(5-1)*d
print"Choices:"
print" i.)Try again"
print" j.)End program"
let answer9$="i"
let answer10$="j"
let answer$=""
input"Choose a letter : ";answer$
if answer9$=answer$ then
goto[i]
end if
if answer10$=answer$ then
goto[j]
end if
[i]
goto [mymenus]

[j]
let ans1$="y"
let ans$=""
input"ARE YOU SURE YOU WANT TO END THIS PROGRAM? [y/n]";ans$
If ans$=ans1$ then
print"THANK YOU FOR USING THIS PROGRAM!"
end
else
goto [mymenus]
end if
end