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

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

goto[a]
end if
goto[b]
end if

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

print"Choices:"
print" c.)Help"
print" d.)Proceed"

goto[c]
end if
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"
goto[e]
end if
goto[f]
end if

[e]
goto [d]

[f]
[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
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"
goto[g]
end if
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"
goto[i]
end if
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"
goto[i]
end if
goto[j]
end if
[i]