Page 95 -
P. 95
frugality feature
I forgot to say that I
only need to know the
price when it‛s $4.74 or
lower. I don‛t want it to
bug me when it isn‛t.
The new version of the program works, but
now there′s a design issue.
The Starbuzz CEO wants to know when the price of
the beans falls below $4.74. The program needs to keep
checking the Beans’R’Us website until that happens. It’s
time to restructure the program to add in this new feature.
Let’s add a loop to the program that stops
when the price of coffee is right.
60 Chapter 2