Programming on the TI-84 and TI-Nspire Sheryl Edwards sheredwa@gmail.com Cleveland Metropolitan School District Lisa M Suarez-Caraballo, PhD Lisa@LisaSuarez.net Cuyahoga Community College .
TI-84* Programming Basics Naming a program Writing a Program Editing a Program
Alpha Keys 2nd Alpha Lock (A-Lock) Space Quotes Question Mark
Naming a Program Press PRGM (Program) Arrow over to NEW and press ENTER Use the ALPHA Keys to name your program and press ENTER. Note: the calculator is automatically put into ALPHA lock mode.
Writing a Program Program Menu Mode Menu Alpha keys
Writing a Program To write basic programs today we will mostly use the PRGM (Program) I/O Menu. We will start the program with 8:ClrHome and press ENTER. From the MODE Menu choose 2 to fix the decimal and press ENTER.
Writing a Program-Asking User We’re going to write a program to find the area and the perimeter of a rectangle. We will use the Disp and Input commands that can be found in the PRGM I/O Menu. Use the Disp function and the ALPHA keys to ask the user for information like the length and width. Use Input to assign a variable to the number you just asked for. Make sure you press ENTER to move to the next line.
Writing a Program-Using Info Write the equations on a new line and STOre the answer into a variable. Press ENTER. Place the Disp command on the next line followed by the sentence you would like to have displayed along with the answer. Don’t forget the comma!!
Test Your Program Program automatically saves Press to EXIT Run your program by pressing select RECTANGL and press ENTER Find the area and perimeter of the following rectangles: a.) L=34 , W=27 b.)L=13 , W=15 c.) L=5.5 , W=6.28
Editing a Program We’re going to Edit the program to display the area and perimeter as a fraction. Arrow over to EDIT and press ENTER. Add the Frac function from the MATH menu to the program right after each Disp “PERIMETER” and “AREA” lines. Now Re-Do # 4C
TI-Nspire Programming Writing and Naming a Program. Open New Document and Add a Calculator page:
TI-Nspire Programming Press Menu and choose 9:Functions and Programs
TI-Nspire Programming You are ready! Choose New and you will get this screen. Let’s find the area of a rectangle! Name your program rectangle!
TI-Nspire Programming You can type all the letters in rectangle. The screen will come up like this: You can declare specific parameters (l,w)
TI-Nspire Programming Be sure to use := when declaring a variable!
TI-Nspire Programming Press Menu and select Check Syntax & Store
TI-Nspire Programming You can Test your Program right beside the editor or open a new Calculator page.
TI-Nspire Programming Edit the program to accept user input.: Take the parameters out of the first line. Use Menu I/O or type the word Request
TI-Nspire Programming Don’t forget hit Menu to Check Syntax and Store your program. Run this test on another page: This time do not put anything in the ()!
Write your own Programs Write a program to find the area and the circumference of a circle given its radius. Write a program to find the distance between two points given two points. Write a program to find the slope of a line when given two points. Challenge: Write a program to solve the quadratic equation. Give both solutions in a matrix.
Thank You