HP Prime Graphing Wireless Calculator Manual do Utilizador Página 627

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
Vista de página 626
graphically display the results of the simulation
numerically display the results of the simulation.
With that in mind, we will create the following views:
START, ROLL DICE, SET SIDES, and SET ROLLS.
The START option will initialize the app and display a note that gives the user instructions. The user will also
interact with the app through the Numeric view and the Plot view.
These views will be activated by pressing and , but the function Plot() in our app program
will actually launch the latter view after doing some conguration.
Before entering the following program, press to open the Info editor and enter the text
shown in the gure. This note will be attached to the app and will be displayed when the user selects the Start
option from the View menu (or presses ).
The program discussed earlier in this chapter to get the number of sides for a dice is expanded here, so that
the possible sums of two such die are stored in dataset D1. Enter the following sub-routines into the program
for the DiceSimulation app.
The DiceSimulation program
DICESIMVARS();
ROLLDIE();
EXPORT SIDES,ROLLS;
EXPORT DiceSimulation()
BEGIN
END;
VIEW "Start",START()
BEGIN
D1:={};
The User Keyboard: Customizing key presses 579
Vista de página 626
1 2 ... 622 623 624 625 626 627 628 629 630 631 632 ... 700 701

Comentários a estes Manuais

Sem comentários