Download Print this page

Getting Started: Rolling A Die; 10-2 Programming - Texas Instruments TI-80 Manual Book

Graphing calculator

Advertisement

Getting Started: Rolling a Die

Getting Started is a fast-paced introduction. Read the chapter for details.
A program is a set of commands that can be executed sequentially, as if they
had been entered from the keyboard. Write a simple program to simulate the
rolling of a single die. It should prompt for the number of rolls and then store the
results of the rolls in a list.
1. Press K 9 9 to display the
2. Press ¸ to select
is now in
ALPHA-LOCK.
of the program, and press ¸. You are now in the
program editor. The
the second line indicates that this is the beginning of
a command line.
3. Press K 9 to access the
4
.
CLRHOME
¸ to complete the instruction and move to the
next line.
§ 2 =
4. Press
0
dimension of
will be stored) to 0. Press ¸ to complete the
instruction and move to the next line.
5. Press K 9
location. Press 2 < ã
? ã
ä b ?
"
number of rolls. Press ¸ to complete the
instruction.
6. Press K
4
Press ?
to complete the instruction.

10-2 Programming

CREATE NEW.
) Type
:
(colon) in the first column of
PRGM I/O
is copied to cursor location. Press
2 ¢. This sets the
3
(the list where the results of the rolls
to copy
1
INPUT
ä
"
ROLLS
to prompt the user to input the
R
to copy
FOR(
to the cursor location.
b
b ?
I
1
R
menu.
PRGM NEW
(The keyboard
R O L L
as the name
menu. Press
to the cursor
2 D
1
b
d. Press ¸
1

Hide quick links:

Advertisement

loading