Choose Menu (Option C in after pressing the program button). You will get Menu(. Type the name of the menu in quotes, then the name of an option in quotes, then the label that that option will go to. Type the name and label for every option. Separate all these with a comma.
Example Menu:
HOW ARE YOU?
1. GOOD
2. NOT GOOD
Say the "Good option goes to label G and the "Not Good" option goes to label NG. The programing for the menu would look like this:
:Menu("HOW ARE YOU?", "GOOD", G, "NOT GOOD", NG)
(The all caps in this answer are used because most typing on a TI-84 is in all caps.)
Chat with our AI personalities
I could write pages trying to answer this one, but I will just give you an example. First, press the prgm button. Move the highlighted word to "new", and press 1. Then, enter the name of your program. You should then see a screen with the a header and a blank line. This is where you will enter your program. All the commands you will need will be located by pressing the prgm button while editing your program. You don't need to save it; just exit out of the program and then run it using using keystrokes prgm, 1, enter. Now, here is the example. It is a simple program to determine whether a number is even or odd. I have comments on the right-hand side. You do not need this in your program.
:ClrHome Clears the screen
:Input "INTEGER=?",A Asks for a number; 2nd argument is the variable
:A/2->B Stores half of A to B
:round(B,0)->C Stores the rounded B to C
:If B=C Does B=C?
:Then If so,...
:Disp "EVEN" Display "even"
:Else If not,...
:Disp "ODD" Display "odd"
Sample Output:
INTEGER=?257
ODD
Use matrices.
There are only matrices from [A] through [J], so I like to use [J], because that is the one people use the least.
Access one element in a matrix like this: for the element in the second row, third column:
[J](2,3)
use the store \->\ command to store to an element (an element is a number in the matrix)
3\->\[J](2,3)
you could have a matrix with 10 rows and 10 columns. To change that in a program, do:
{10,10}\->\dim([J])
Now, you can store numbers to each element in [J] that specifies the ocean or a ship. Next, just write some code to let you select a space to hit and display the game board, and you have battleship.