HP Prime Graphing Calculator User Manual

Page 529

Advertising
background image

Programming in HP PPL

523

1. In the Application

Librray, select the
Statistics 1Var app
but don’t open it.

I

Select

Statistics
1Var.

2. Tap

.

3. Enter a name for the new app (such as

DiceSimulation.)

4. Tap

twice.

The new app appears in the Application Library.

5. Open the Program Catalog.

Sx

6. Tap the program to

open it.
Each customised
app has one
program associated
with it. Initially, this
program is empty.
You customize the
app by entering functions into that program.

At this point you decide how you want the user to interact
with the app. In this example, we will want the user to be
able to:

start and initialize the app, and display a short note

specify the number of sides (that is, faces) on each
die

specify the number of times to roll the dice

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.

Advertising