So I wrote a small program on my TI-82 for work. It works great but I want to improve it. I want to have a running total for an input that is
stored in the program. I can write out the code if need be, but I'm stoned and don't want to... HAHA
Thanks
Help with my TI-82
Moderator:Moderators
Re: Help with my TI-82
Welcome to the forums... I think you are going to have to clarify your question a little... You want to store a variable into the calculators memory?
"Linux is only free if your time is worthless"
Re: Help with my TI-82
Ok I'll write out the code
Clrhome
Disp "Total Crates"
Input M
Disp " Total Footage"
Input L
Disp "Target Weight"
Input T
Disp "Board weight"
Input B
Lbl A
Disp "Crate Weight"
Input A
A-B->N
T*L->P
N/P->O
O*100-100->W
M*B->Z
L*M->Y
If A=0
GoTo B
ClrHome
Disp "Net Weight"
Disp N
Fix1
Disp "Over Weight"
Disp W
GoTo A
Lbl B
ClrHome
Float
Disp "Daily Footage"
Disp Y
Disp "Total Board Weight"
Disp Z
Float
So when:
Total Crates = 7----Input M
Total footage = 1400 ---Input L
Target Weight = .71 ---Input T
Board Weight = 35 --- Input B
Crate Weight = 1074 --- Input A
The output looks like this:
Net Weight = 1036
Over Wight = 4.2
Crate Weight???
The program is still not done. Sense M=7, I have 6 more "Crate Weights" to input. Lets say those are:
1069
1068
1074
1072
1073
1065
When you have entered all the "Crate Weight" enter = 0. This will then display:
Daily Footage = 9800
Total Board Weight = 245
What I want the program to do is add all the M inputs, then minus the "total Board Weight" and display it with the "daily footage" and "Total board weight" page. So with the above number it would Look like this:
Daily Footage = 9800
Total Board Weight = 245
Gross Weight = 7495
Net weight = 7250
Well that is what I am trying to accomplish. Hope you understand what I am talking about.
Thanks
Clrhome
Disp "Total Crates"
Input M
Disp " Total Footage"
Input L
Disp "Target Weight"
Input T
Disp "Board weight"
Input B
Lbl A
Disp "Crate Weight"
Input A
A-B->N
T*L->P
N/P->O
O*100-100->W
M*B->Z
L*M->Y
If A=0
GoTo B
ClrHome
Disp "Net Weight"
Disp N
Fix1
Disp "Over Weight"
Disp W
GoTo A
Lbl B
ClrHome
Float
Disp "Daily Footage"
Disp Y
Disp "Total Board Weight"
Disp Z
Float
So when:
Total Crates = 7----Input M
Total footage = 1400 ---Input L
Target Weight = .71 ---Input T
Board Weight = 35 --- Input B
Crate Weight = 1074 --- Input A
The output looks like this:
Net Weight = 1036
Over Wight = 4.2
Crate Weight???
The program is still not done. Sense M=7, I have 6 more "Crate Weights" to input. Lets say those are:
1069
1068
1074
1072
1073
1065
When you have entered all the "Crate Weight" enter = 0. This will then display:
Daily Footage = 9800
Total Board Weight = 245
What I want the program to do is add all the M inputs, then minus the "total Board Weight" and display it with the "daily footage" and "Total board weight" page. So with the above number it would Look like this:
Daily Footage = 9800
Total Board Weight = 245
Gross Weight = 7495
Net weight = 7250
Well that is what I am trying to accomplish. Hope you understand what I am talking about.
Thanks