Download LEARN PROGRAMMING - FOR FUN AND THE FUTURE

Transcript
■
■
■
Add your computer's data handling
capacity to its graphics functions,
and you have the basis for a whole
range of programs to display any
information as a graph or chart
Data storage and processing is something at
which computers have always excelled. But,
unfortunately, it isn't so easy for a computer's
user to assimilate a mass of information. If you
are presented with a list of perhaps a hundred
figures, it's very difficult to see an overall
pattern.
For example, take a close look at the
following list of numbers: 132.09, 146.2,
132.89, 123.92, 147.01, 153.47, 132.09,
138.79, 147.57, 153.9, 140.04, 142.76, 152.76,
132.6, 135.09, 146.98. Now answer the following questions:
a) Which is the highest number in the list?
b) What is its position in the list?
c) How many numbers are there below 135.5?
This isn't particularly easy, but imagine how
DRAWING GRAPHS OF
MATHEMATICAL FUNCTIONS
PLOTTING STEP G
SCALING AND DRAWIN
THE AXES
difficult it would be if there were five times as
many entries in the list.
The traditional answer to this sort of problem is to display the information graphically.
When the same data is presented as a chart, it is
easy to see which point is the highest, and how
far along it comes. Or, by ruling off at a
particular point, you can check all those values
which are above or below a certain level.
Of course, you could also get your computer
to make these checks for you and print out a
result, but this will not give you any feel for the