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.