< previous page page_387 next page >

Page 387
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Orville's Acres,  114.8  43801
Hoffman's Hills,  77.2  36229
Jiffy Quick Farm,  89.4  24812
Jolly Good Plantation,  183.2  104570
Organically Grown Inc.,  45.5  14683
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
the output would be
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
                  Pop Co-Op
Farm Name                   Production in
                            Thousands of
                            Pint Jars per Acre
                               1   2   3   4   5   6
                            ---|---|---|---|---|---
Orville's Acres             ***************    |
Hoffman's Hills             *******************|
Jiffy Quick Farm            ***********        |
Jolly Good Plantation       *******************#***
Organically Grown Inc.      *************      |
This problem should decompose neatly into several functions. You should write your program in proper programming style, with plenty of comments and no global variables. It should handle data errors (such as a farm name longer than 29 characters) without crashing.
Case Study Follow-Up
1. Write a separate function for the Graph program that prints a bar of asterisks, given the department sales value.
2. Rewrite the existing PrintData function so that it calls the function you wrote for Question 1.

 
< previous page page_387 next page >