Education Technology

Solution 34419: Writing a Program that Generates a Menu on the TI-84 Plus C Silver Edition Graphing Calculator.

How can I write a program that generates a menu on the TI-84 Plus C Silver Edition graphing calculator?

The Menu() command in the Program Editor can be used to create a menu. The Menu() command sets up branching within a program. When this command is encountered during program execution, the menu screen is displayed with the specified menu items, the pause indicator is activated and the execution of the program pauses until a menu item is selected.

The syntax for the Menu command is Menu("title", "text1", label 1, "text2", label 2,...).

The menu title is enclosed in quotation marks. Up to seven pairs of menu items may follow. Each pair comprises a text item (also enclosed in quotation marks) to be displayed as a menu selection and a label item in which to branch when the corresponding menu option is selected.

For example, the following code:

PROGRAM: TOSSDICE
: Menu("TOSS DICE", "FAIR DICE", A, "WEIGHTED DICE", B)


Will generate the following output:

TOSS DICE
1. FAIR DICE
2. WEIGHTED DICE


The program will pause until 1 or 2 is selected. If 2 is selected, for example, the menu disappears and the program continues execution at Lbl B.

Please see the Programming Chapter of the TI-84 Plus C Silver Edition guidebook for additional information.