Mr. Vizza's Class

Program for Slope Formula


    We know that the slope formula is given by

    This program is designed so that the user can enter x1, y1, x2, and y2.  The slope between the two points will automatically be calculated.

 

Bold text indicates a selection that can be made on the sreen of the calculator.

Pink text indicates a button that must be depessed on the keypad.

Code

Description & Comments

PROGRAM : SLOPE This is done by pressing PRGM and selecting NEW.  Use the appropriate buttons on the keypad to type the name of the program.  In this case we will have named the program SLOPE.   Press ENTER when done.
:Input "X1?", A The colon will appear automatically at the beginning of every line.  The word Input is not typed at the key pad.  It is selected from a menu by pressing PRGM, followed by right arrow and then ENTER.
:Input "Y1?", B
:Input "X2?", C
:Input "Y2?", D
:(D-B)/(C-A)à M The à  is done by pressing STO>.
:Disp M>Frac The word Disp is not typed at the key pad.  It is selected from a menu by pressing PRGM, followed by right arrow and then ENTER.  Also the word Frac is not typed at the key pad.  It is selected from a menu by pressing MATH followed by ENTER.
Press 2nd, MODE to return back to the home screen.
To run the program press PRGM. Then select the program by using the up and down arrows.  Then press ENTER.

©2004 Thomas Vizza