Owner's Manual

Table Of Contents
Previews 125
Programming
Programming Programming
Programming
Write a program that prompts the user to enter an integer, sums all integers from 1 to the
entered integer, and displays the result.
29. Use the MedMed (
y1(x)) and
LinReg (
y2(x)) regression equations to
calculate values for x = 300 (300,000
population).
The
round function (2I13)
ensures that results show an integer
number of buildings.
After calculating the first result, edit the
entry line to change
y1 to y2.
Press 2 I 1 3 Y1 c 300 d b 0 d
¸ B A (eight times) 0 2 ¸
Steps and keystrokes Display
1. Use O to display the Program Editor.
Create a new program.
Press 3
2. Type PROG1 (with no spaces) as the
name of the new program variable.
D D PROG j 1
Steps and keystrokes Display