![Texas Instruments TI-Nspire Manual Book Download Page 700](http://html.mh-extra.com/html/texas-instruments/ti-nspire/ti-nspire_manual-book_1094491700.webp)
688
Programming
2. Supply the variables, and then run the program.
Letting the user supply the values as arguments
This method lets users pass one or more values as arguments within the
expression that calls the program or function.
The following program, , calculates the volume of a cylinder. It requires
the user to supply two values: height and radius of the cylinder.
1. Define the program.
2. Run the program to display the volume of a cylinder with a height of
34 mm and a radius of 5 mm.
Note:
You do not have to use the parameter names when you run the
program, but you must supply two arguments (as values, variables, or
expressions). The first must represent the height, and the second must
represent the radius.
Requesting the values from the user (programs only)
You can use the and commands in a program to make the program
pause and display a dialog box prompting the user for information. This
method does not require users to remember variable names or the order
in which they are needed.
You cannot use the or command in a function.
1. Define the program.
(height,radius) =
"Volume =", (
p
¦
radius
2
¦
height
)
(34,5)
Volume = 534.071
"Width: ",
"Height: ",
Summary of Contents for TI-Nspire
Page 38: ...26 Setting up the TI Nspire Navigator Teacher Software ...
Page 46: ...34 Getting started with the TI Nspire Navigator Teacher Software ...
Page 84: ...72 Using the Content Workspace ...
Page 180: ...168 Capturing Screens ...
Page 256: ...244 Embedding documents in web pages ...
Page 336: ...324 Polling students ...
Page 374: ...362 Using the Review Workspace ...
Page 436: ...424 Calculator ...
Page 450: ...438 Using Variables ...
Page 602: ...590 Using Lists Spreadsheet ...
Page 676: ...664 Using Notes You can also change the sample size and restart the sampling ...
Page 684: ...672 Libraries ...
Page 714: ...702 Programming ...
Page 828: ...816 Data Collection and Analysis ...
Page 846: ...834 Regulatory Information ...
Page 848: ...836 ...