EasyManuals Logo

Texas Instruments TI Programmable 57 User Manual

Texas Instruments TI Programmable 57
94 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #58 background imageLoading...
Page #58 background image
ON
SALE!
In
this
case
let's
say
you've
got
a
job
in
a
department
store.
The
manager
thinks
that
running
sales
is
a
good
idea.
In
fact,
he
has
his
employees
marking
down
price
tags
throughout
the
store
quite
often.
He
also
likes
to
vary
the
amount
of
the
discount
from
department
to
department,
25%
for
shoes,
15%
in
hardware,
etc.
In
this
programming
situation
we'll
review
some
of
what
you've
seen
in
the
first
example
and
expand
on
using
memories
as
part
of
programs,
DESTINATION
You'd
like
to
be
able
to
go
to
any
department
in
the
store
that
you're
assigned,
key
in
the
price
of
any
item
on
the
shelf,
press
Rl
and
get
the
discounted
price.
You'd
also
like
to
be
able
to
vary
the
amount
of
the
discount
as
easily
as
your
manager
changes
the
discount
amount
from
department
to
department,
PLANNING
THE
Route
When
an
item
is
discounted
by
25%,
you
can
find
the
new
price
using
the
formula:
New
price
=old
price
x
(1-.25).
In
fact,
for
any
discount
amount
you
can
find
the
new
price
from
this
same
formula:
New
price
=old
price
x
(1
-
discount)
,
In
our
program,
we'll
store
the
discount
amount
as
a
decimal!
number
(25%
=
0.25)
in
memory
3.
Then
we'll
recall
it
as
we
need
to
in
calculating
the
new
price.
New
price
=
old
price
x
(1-
[Rai]
9).
The
advantage
of
doing
this
in
your
program
is
that
if
you
go
toa
new
department
with
a
new
discount
tate,
all
you'll
need
to
do
is
store
the
new
rate
in
memory
3,
then
proceed.
This
technique
is
a
handy
one
in
many
situations
where
you'd
like
to
change
a
number
in
a
program
without
rewriting
the
program
itself,

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TI Programmable 57 and is the answer not in the manual?

Texas Instruments TI Programmable 57 Specifications

General IconGeneral
BrandTexas Instruments
ModelTI Programmable 57
CategoryCalculator
LanguageEnglish

Related product manuals