Texas Instruments TI-73 EXPLORER 用户手册

下载
页码 364
236
     Chapter 12: Programming
7312ENG.DOC   CH 12 Programming, English   Julie Hewlett   Revised: 07/29/98 12:17 PM   Printed: 05/19/99 9:02
AM   Page 236 of 32
Write a program named 
DSKIP
 that displays A until A<5.
PROGRAM:DSKIP
:9"A
:Lbl S
:Disp A
:Pause
:DS<(A,5)
:Goto S
:Disp "A IS NOW <5"
:Pause
 
Menu(   
Menu(   8
 
 C
 C
Menu(
 generates a menu of up to seven items during program
execution. The pause indicator stays on until you select a
menu item. The calculator then branches to the label
corresponding with that item.
The menu title is enclosed in quotation marks (
"
 
"
) and can
have up to 16 characters. Up to seven pairs of menu items
follow. Each pair consists of a text item (also enclosed in
quotation marks) to be displayed as a menu selection, and a
label item to which to branch if you select the corresponding
menu selection.
:Menu("
title
"
,
"
item1
"
,label1[,
"
item2
"
,label2,…]
)
Write a program named 
DATES
 that displays a menu of dates.
Label the title “
DATES
”, and label option one “
JANUARY 16
” with
A
, label option two “
FEBRUARY 19
” with 
B
, label option three
“
APRIL 9
” with 
C
, label option four “
JULY 29
” with 
D
, label
option five “
AUGUST 2
” with 
E
, label option six “
NOVEMBER 10
”
with 
F
, and label option seven “
DECEMBER 8
” with 
F.
PROGRAM:DATES
:Menu("DATES","JANUARY
16",A,"FEBRUARY 19",B,"APRIL
9",C,"JULY 29",D,"AUGUST
2",E,"NOVEMBER 10",F,"DECEMBER
8",G)
³
³
Press 
b
between
A values.