Discuss Varying variables in the TI 83/84 forum on Dev Hardware. Varying variables Programming forum discussing coding and everything related to the well-known TI-83/83+/84/84+ graphing calculators for math and science. Creative ideas, helpful information and questions regarding applications are welcomed but no homework at all!
ASP Free and Iron Speed Designer are giving away $5,500+ in FREE licenses. Iron Speed's RAD CASE toolset can save up to 80% of your coding time. One free license per week, one perpetual license per month!
Receive the tools necessary to be the rock star of your field. Our 12-month program teaches you the evolving world of multi-channel marketing as well as the complex issues and opportunities found in the industry.
The ASP Free website provides in-depth information on the latest developer tools available from Microsoft. Our cadre of writers, highly experienced industry experts, reveals the best ways to use established technologies as well as new and emerging technologies. Our coverage of Microsoft's development and administration technologies is among the most respected in the IT industry today. .
Posts: 2
Time spent in forums: 7 m 33 sec
Reputation Power: 0
Varying variables
I'm trying to make an inventory program for my TI-83 Calculator. What I need it to do is to prompt a user for the number of items, and create prompts for each one.
Example:
Number of Items:
User inputs, say 4.
The program then asks for the value of 4 items, as the program only created 4 variables.
Posts: 330
Time spent in forums: 3 Days 3 h 29 m 28 sec
Reputation Power: 113
Quote:
Originally Posted by BobaFett2040
I'm trying to make an inventory program for my TI-83 Calculator. What I need it to do is to prompt a user for the number of items, and create prompts for each one.
Example:
Number of Items:
User inputs, say 4.
The program then asks for the value of 4 items, as the program only created 4 variables.
Is that possible outside of using assembly?
You'll want to use a List, commonly known as an Array in other programming languages, except with one dimension. A list is a collection of numbers, with one dimension, much like what one would normally think of when you say list.
Because a List is a one dimensional object or variable, to store or call from a list, you need to specify to or from which element of the list. If you don't specify, then it will assume you're trying to replace the entire list. The calculator has a few built in lists, of which being L1 (List 1) through L6 (List 6). You can find these lists on the number pad of your calculator, after pressing [2nd].
Another thing to specify before going on, a list require dimensions. It cannot hold an infinite number of variables, and is limited either by memory, or specified dimensions.
In TI BASIC, a list by default will not exist. Even if it does exist, it by default will have dimensions of 0, meaning it has no slots for variable placement. Before you can use a list, you must define it, and then set it's dimensions. Most often you can do both of these in one step, so we will.
Here's a small code, where the program set's L1's dimensions to 5, meaning there are 5 elements where you can store variables. Then after setting the dimensions, it will store the value 2 into the first element of L1, 3 into the second, etc.
Now given you don't input invalid dimensions (negative, imaginary, or non-integer number, or if it exceeds the set dimensions, applies to C, and B if A is 0) then it will work properly.
You can use this for the code you were asking for.
Now, I can't cover all of the information, so if you want to learn more about lists, then here's a link to an article with more information.
Posts: 2
Time spent in forums: 7 m 33 sec
Reputation Power: 0
Thanks. I'll check it out first chance I get.
Quote:
Originally Posted by MufinMcFlufin
You'll want to use a List, commonly known as an Array in other programming languages, except with one dimension. A list is a collection of numbers, with one dimension, much like what one would normally think of when you say list.
Because a List is a one dimensional object or variable, to store or call from a list, you need to specify to or from which element of the list. If you don't specify, then it will assume you're trying to replace the entire list. The calculator has a few built in lists, of which being L1 (List 1) through L6 (List 6). You can find these lists on the number pad of your calculator, after pressing [2nd].
Another thing to specify before going on, a list require dimensions. It cannot hold an infinite number of variables, and is limited either by memory, or specified dimensions.
In TI BASIC, a list by default will not exist. Even if it does exist, it by default will have dimensions of 0, meaning it has no slots for variable placement. Before you can use a list, you must define it, and then set it's dimensions. Most often you can do both of these in one step, so we will.
Here's a small code, where the program set's L1's dimensions to 5, meaning there are 5 elements where you can store variables. Then after setting the dimensions, it will store the value 2 into the first element of L1, 3 into the second, etc.
Now given you don't input invalid dimensions (negative, imaginary, or non-integer number, or if it exceeds the set dimensions, applies to C, and B if A is 0) then it will work properly.
You can use this for the code you were asking for.
Now, I can't cover all of the information, so if you want to learn more about lists, then here's a link to an article with more information.
LOADING INFUSIONSOFTLOADING INFUSIONSOFT 1debug:overlay status: OFF overlay not displayed
overlay cookie defined: TI_CAMPAIGN_1012_D
OVERLAY COOKIE set:
status off