Input Commands for the TI-84 Plus
The Input and Prompt commands are used in a program on the TI-84 Plus calculator to solicit information from the program user. The Input command asks the user for the value of only one variable and allows the program to briefly describe the variable it is requesting.
The Prompt command asks the user for the value of one or more variables, but does not allow for a description of the variable other than its name.
The Input command for the TI-84 Plus
The syntax for using the Input command to request the program user to assign a value to a variable is: Input text,variable. The text, which must be in quotes, offers the program user a description of what is being requested by this command. The text and the variable must be separated by a comma. Note that there is no space between the comma and the variable.
Press [ALPHA][+] to insert a quotation mark.
When the program is executed, the program displays the text on the Home screen and waits for the program user to enter a number and press [ENTER]. This is illustrated at the top of the third picture. The number entered by the user is then stored in the variable specified by the Input command.
Each line of the Home screen can accommodate a maximum of 16 characters. Often, this isn’t enough space for the Input command to display the text and for the program user to enter the value of the variable. If this is the case, you may want to precede the Input command with a Disp command describing the value that the user must enter.
When you do so, the syntax for the Input command is simply: Input variable, as in the second picture. When the program is executed, it displays the description given in the Disp command, and then prompt the program user for a value by displaying a question mark, as in the second half of the third picture.
The Prompt command for the TI-84 Plus
The Prompt command asks the program user to assign values to one or more variables. The syntax for using the Prompt command is: Prompt variable1,variable2,...,variable n. Commas separate the variables and there is no space between the comma and the next variable.
When the program is executed, the program displays the first variable followed by an equal sign and a question mark and waits for the program user to enter a number. It then does the same for the next variable, and so on, as in the second picture. The numbers entered by the user are then stored in the variable specified by the Prompt command.
The Window variables Xmin, Xmax, Ymin, and Ymax are housed in the Variables Window menu. To access this menu, press [VARS].