Choose - TI 89

Introduction
This program creates a menu with two options: Approximate and Exact. When referenced in another program, this program allows you to select the approximate mode or exact mode when running the program.
 
If you have not used one of the programs posted on this website before, you should read through the information in the Intro to Programming section first.


The Program
:choose( ) {This will already appear if you named the program choose}
:Prgm {this will already appear}
:PopUp {"approx","exact"}, g {PopUp is in the F3 menu under Dialog}
:If  g=1   Then {If Then Else EndIf  is in the F2 menu}
:setMode("Exact/Approx","Approximate")$\to$msave {setMode is in the F6 menu under D} {$\to$   is STO}
:Else
:setMode("Exact/Approx","Exact")$\to$msave
:EndIf
:EndPrgm {This will already appear}


Running the Program
 
To test the program enter choose( ) on the home screen. You should see a small popup menu with two options.