Simple programming
-
Upload
amcsquared -
Category
Education
-
view
1.525 -
download
0
description
Transcript of Simple programming
Simple programming for your
TI calculator
The four things you want your
program to do: • Prompt - to ask you for something
• Calculate and store – perform whatever
operations need to be done on that
something, and put it somewhere
• Display – to tell you what was the result of
those calculations on those somethings
Let’s start simple:
• We’ll program the
calculator to find the
circumference of a
circle:
Let’s start simple:
• We’ll program the
calculator to find the
circumference of a
circle:
• First click PRGM:
Let’s start simple:
• We’ll program the
calculator to find the
circumference of a
circle:
• First click PRGM:
• Cursor to NEW:
Let’s start simple:
• We’ll program the
calculator to find the
circumference of a
circle:
• First click PRGM:
• Cursor to NEW:
• Enter:
Let’s start simple:
• Notice the cursor is a
letter A, which means
it’s in alpha mode.
Let’s start simple:
• Notice the cursor is a
letter A, which means
it’s in alpha mode.
• The calculator is
waiting for you to type
in the name of the
program...call it
CIRCMFNC
Let’s start simple:
• Notice the cursor is a
letter A, which means
it’s in alpha mode.
• The calculator is
waiting for you to type
in the name of the
program...call it
CIRCMFNC
• enter
Let’s start simple:
• Click PRGM again
• This time you see a
different menu than
the last time you
clicked PRGM:
Let’s start simple:
• Click PRGM again
• This time you see a
different menu than
the last time you
clicked PRGM:
• Cursor to I/O
Let’s start simple:
• Click PRGM again
• This time you see a
different menu than
the last time you
clicked PRGM:
• Cursor to I/O
• Select Prompt, hit
enter:
Let’s start simple:
• Now the calc is
waiting for you to tell
it what to prompt for
Let’s start simple:
• Now the calc is
waiting for you to tell
it what to prompt for
• You have to get back
into alpha mode
before you answer
Let’s start simple:
• Now the calc is
waiting for you to tell
it what to prompt for
• You have to get back
into alpha mode
before you answer
• So press ALPHA,
then type R, then
enter:
Let’s start simple:
• Now we have to give
the program a formula
to calculate
circumference, so
type in 2R
Let’s start simple:
• Now we have to give
the program a formula
to calculate
circumference, so
type in 2R
• Then STO>
• Then alpha C, then
enter
Let’s start simple:
• Now we have to give
the program a formula
to calculate
circumference, so
type in 2R
• Then STO>
• Then alpha C, then
enter
You just asked the
calculator to
perform the
calculation and
call the answer C!
Let’s start simple:
• Now we have to ask
the calculator to
display the result of
the calculation
Let’s start simple:
• Click PRGM again,
cursor to I/O as
before, and this time
select DISP
Let’s start simple:
• Click PRGM again,
cursor to I/O as
before, and this time
select DISP, then
enter
Let’s start simple:
• Click PRGM again,
cursor to I/O as
before, and this time
select DISP, then
enter
• Click 2ND ALPHA to
lock into alpha mode
Let’s start simple:
• Click PRGM again,
cursor to I/O as
before, and this time
select DISP and enter
to get this:
• Click 2ND ALPHA to
lock into alpha mode
• Type “C EQUALS”, C
then enter
Now let’s execute the program:
• Click 2ND QUIT to exit
this mode
Now let’s execute the program:
• Click 2ND QUIT to exit
this mode
• PRGM
Now let’s execute the program:
• Click 2ND QUIT to exit
this mode
• PRGM
• Enter:
Now let’s execute the program:
• Click 2ND QUIT to exit
this mode
• PRGM
• Enter:
• Enter:
Now let’s execute the program:
• Click 2ND QUIT to exit
this mode
• PRGM
• Enter:
• Enter:
Prompting you
for R, just like
you told it to
Now let’s execute the program:
• Click 2ND QUIT to exit
this mode
• PRGM
• Enter:
• Enter:
• Type 10 then enter:
Now let’s execute the program:
• Click 2ND QUIT to exit
this mode
• PRGM
• Enter:
• Enter:
• Type 10 then enter:
Displaying what
you told it to
display!
Now let’s execute the program:
• Click 2ND QUIT to exit
this mode
• PRGM
• Enter:
• Enter:
• Type 10 then enter:
Calculated 2r
and now
displaying the
result!
You can use this “prompt, store, display”
procedure to input programs for:
• Vertex formula
You can use this “prompt, store, display”
procedure to input programs for:
• Quadratic formula to
find zeros: