Hello guys,
I've been looking everywhere and reading tutorials all over, but I can't seem to find how it's done.
How do I write what I want.. hmm.. let me give you an example..
- Input "How many occurring isotopes?", A
- then, if the user types "2" , it will display:
:Input "E-X AMU MASS: ",A
:Input "E-X ABUNDCE PER100: ",P
:ClrHome
:Input "E-Y AMU MASS: ",M
:Input "E-Y ABUNDCE PER100",Q
... Then it will do the calculations..
- but if the user types 3, then it will display:
:Input "ELMNT 1 ABNDCE P100",S
:Input "ELMNT 1 MASS",T
: (S)(T)→T
:ClrHome
:Input "ELMNT 2 ABNDCE P100 ",U
:Input "ELMNT 2 MASS",V
: (U)(V)→V
:ClrHome
:Input "ELMNT 3 ABNDCE P100 ",W
:Input "ELMNT 3 MASS",X
: (W)(X)→X
:T+V+X→Z
:ClrHome
:Disp Z
:Pause
- and if user types 4, then he will have to type 4 amu, and 4 percentages to input..
What im asking here, is how can I have it automatically have the user ask how many, and then once the user has typed how many then ask him to input "those" many, and then let me code the calculation.
Instead of having to make a menu of.. "You have","1",2","3,"4,"5..... etc
By the way, this is for the TI84+ silver edition.
I've been looking everywhere and reading tutorials all over, but I can't seem to find how it's done.
How do I write what I want.. hmm.. let me give you an example..
- Input "How many occurring isotopes?", A
- then, if the user types "2" , it will display:
:Input "E-X AMU MASS: ",A
:Input "E-X ABUNDCE PER100: ",P
:ClrHome
:Input "E-Y AMU MASS: ",M
:Input "E-Y ABUNDCE PER100",Q
... Then it will do the calculations..
- but if the user types 3, then it will display:
:Input "ELMNT 1 ABNDCE P100",S
:Input "ELMNT 1 MASS",T
: (S)(T)→T
:ClrHome
:Input "ELMNT 2 ABNDCE P100 ",U
:Input "ELMNT 2 MASS",V
: (U)(V)→V
:ClrHome
:Input "ELMNT 3 ABNDCE P100 ",W
:Input "ELMNT 3 MASS",X
: (W)(X)→X
:T+V+X→Z
:ClrHome
:Disp Z
:Pause
- and if user types 4, then he will have to type 4 amu, and 4 percentages to input..
What im asking here, is how can I have it automatically have the user ask how many, and then once the user has typed how many then ask him to input "those" many, and then let me code the calculation.
Instead of having to make a menu of.. "You have","1",2","3,"4,"5..... etc
By the way, this is for the TI84+ silver edition.