HP 39gII User Manual page 260

Graphing calculator
Hide thumbs Also See for 39gII:
Table of Contents

Advertisement

250
Each app has one program attached to it. Initially, this
program is empty. You customize the app by entering
functions into that program.
5. Edit the program
DiceSimulation.
Select DiceSimulation
It is here that you enter
functions to customize the
app. At this point, you
decide how you expect the
user to interact with the
app. In this case, we will
create views to do the following:
START: start the app
SETSIDES: specify the number of sides (faces) on
each die
SETNUMROLLS: specify number of times to roll the
dice
RESET: start over
The START option will initialize the app and display a
note embedded in the app containing instructions for the
user. The user will also interact with the app through the
Numeric view and the Plot view. These views will be
activated by pressing
Num and Plot in our app program will actually launch
those views after doing some configuration.
Recall the program to get the number of sides for a die,
presented earlier in this chapter. It is expanded here, so
that the possible sums of two such dice are stored in the
list D1. Enter the following sub-routines into the app
program for the DiceSimulation app.
M
and
P
, but the functions
Programming

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents