hi, i've made a program (a rather lengthy one at that) for probability and statistics. it's for my TI-84 Plus calculator. i have a menu at the beginning, and a section of the program runs according to which key is pressed. (the variable U is assigned the number of the key pressed) however, it will not run if i choose option 6 or 7. (i did not include the menu. these are options 5,6,and 7)
"------5----MEAN
If U=83:Then
ClrHome
Disp "1.ERROR"
Disp "2.INTERVAL"
0->U
While U=0
getKey->U
End
If U=92:Then
ClrHome
Input "CONFIDENCE:",C
Input "SAMPLESIZE(N):",N
Input "ST.DEV:",?
(100-C)
(Ans/100)
(Ans/2)
invNorm(Ans)
abs(Ans)
round(Ans,2)->Z
(Z*(?/?(N)))->E
round(E,2)
ClrHome
Disp "ERROR:",E
Output(1,1,"")
Else
If U=93:Then
ClrHome
Input "CONFIDENCE:",C
Input "SAMPLESIZE(N):",N
Input "ESTIMATE(?):",X
Input "ST.DEV:",?
(100-C)
(Ans/100)
(Ans/2)
invNorm(Ans)
abs(Ans)
round(Ans,2)->Z
(Z*(?/?(N)))->E
(X-E)->A
(X+E)->B
round(A,1)->C
round(B,1)->D
ClrHome
Disp "INTERVAL:"
Output(2,1,C)
Output(2,5,"<M<")
Output(2,8,D)
Output(3,1,"UNROUNDED? Y/N")
0->U
While U=0
getKey->U
End
If U=92:Then
ClrHome
Disp A,"<M<",B
Output(1,1,"")
Else
If U=71 or U=45
Output(1,1,"")
End
"----6---SAMPLE
Else
If U=84:Then
ClrHome
Input "ERROR:",E
Input "CONFIDENCE:",C
Input "ST.DEV:",?
(100-C)
(Ans/100)
(Ans/2)
invNorm(Ans)
abs(Ans)
round(Ans,2)->Z
((Z*?)/E)->N
ClrHome
Disp "SAMPLESIZE:",N
Output(1,1,"")
Else
"----7---CLEAR
If U=72 or U=45:Then
ClrHome
Output(1,1,"")
End
Question
Timmah339
hi, i've made a program (a rather lengthy one at that) for probability and statistics. it's for my TI-84 Plus calculator. i have a menu at the beginning, and a section of the program runs according to which key is pressed. (the variable U is assigned the number of the key pressed) however, it will not run if i choose option 6 or 7. (i did not include the menu. these are options 5,6,and 7)
Link to comment
Share on other sites
5 answers to this question
Recommended Posts