12.07.2015 Views

williams-et-al-1983-apple-ii-computer-graphics

williams-et-al-1983-apple-ii-computer-graphics

williams-et-al-1983-apple-ii-computer-graphics

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

11Graphs and ChartsObjectivesAfter reading Chapter 11 you should be able to:• Have your <strong>computer</strong> draw a bar, line, or circle graph using our programsand your data.• Use the <strong>computer</strong> to graph your own equations.• Label your graphs.Processing data, or "number crunching" as it is som<strong>et</strong>imes c<strong>al</strong>led, haslong been one of the strengths of the <strong>computer</strong>. In earlier machines, theresults of the processing were <strong>al</strong>l too often only pages and pages of numbers.Long columns of numbers often obscure the meaning those samefigures are supposed to convey, so displaying data in graphic form is animportant tool. Bar charts, line graphs, and circle graphs are the three mostcommonly used display m<strong>et</strong>hods, and we will give at least one example ofeach in this chapter. In three of the fo ur examples, the data to be graphedis contained in BASIC DATA statements so that you need only replace thesample data with yours, and the program will graph your data. The otherexample graphs a mathematic<strong>al</strong> equation over a specified range. Modifyingthat program will require you to change the fo rmula and the sc<strong>al</strong>ingfactors. We will t<strong>al</strong>k more about each example when the time comes.Belly Up to the BarListing 11- 1 creates a bar graph-with the bars running either vertic<strong>al</strong>ly orhorizont<strong>al</strong>ly. Key the program in and run it. As usu<strong>al</strong>, you may omit any or<strong>al</strong> I of the REM statements.119

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!