TI-Basic 84 Programming/Input
Input
[edit | edit source]Input, PRGM:I/O:1 is a command which will display a string, and will wait for a value to be entered. It will then store that value into the provided variable once ENTER is pressed. If the only argument is a variable, then a question mark will be displayed instead of the string. And if no arguments are provided, then a cursor on the graph screen will be used to define coordinates at a given location to the variables X and Y.
Syntax: Input
[edit | edit source]:Input [string],''var''
- Where string is either a literal string or string variable which is displayed to help determine appropriate input value
- If string is not given, then a question mark is displayed in its place
- If string is used, then var must also be used
- Where var is a variable type of any {unverified} which data is stored to
- If no argument is specified, the command will display a movable cursor on the graph screen, where when enter is pressed, the current X-coordinate of the cursor will be stored to the variable X, and the current Y-coordinate stored to the variable Y
Ex: With String Title
[edit | edit source]- Input "PLEASE ENTER VALUE: ",X
PLEASE ENTER VAL UE: 5
Ex: Without String Title
[edit | edit source]- Input X
?5
Ex: Without Arguments
[edit | edit source]- Input
Prompt
[edit | edit source]:Prompt var[,var2][,var3][,var4][,…varN]
- Where var2,var3,var4, though to varN are all optional arguments. The number of arguments is only limited by available memory. There needs to be at least one argument for it to work.
- Each argument must be a variable name.
- For each argument, Prompt will wait while a value is entered. Once Enter is pressed, the value will be stored to the associated variable. Then Prompt will continue on to the next argument until the end.
Ex: Two Numbers
[edit | edit source]- Prompt X,Y
X=?5 Y=?7
Ex: Other Variable Types
[edit | edit source]- Prompt Str1,L2
Str1=?"ABC" L2=?{1,2,3}
using VARS you can set and pick functions Y1(requested value)
Y-VARS Example solves for v Note: add quotes " " for equation you can also predefined equation in Y=
using VARS you can set and pick functions Y1(requested value) Template:Bcode:Y-VARS Example solves for v Note: add quotes " " for equation you can also predefined equation in Y=