Develop a design and write a program to produce a bar chart


Problem

Develop a design and write a program to produce a bar chart of gourmet popcorn production for a cooperative farm group on a farm-by-farm basis. The input to the program will be a series of data sets with each set representing the production for one farm. The output will be a bar chart that identifies each farm and displays its production in pints of corn per acre. Following the last data set is a null line (a line with no characters). Each data set will consist of two lines. On the first line is the name of a farm. On the second line is a real number representing acres planted, a space, and a whole number representing pint jars of popcorn produced. The output will be a single line for each farm, with the name of the farm starting in the first column on a line and the bar chart starting in column 30. Each mark in the bar chart will represent 250 jars of popcorn per acre. The production goal for the year is 5,000 jars per acre. A vertical bar should appear in the chart for farms with lower production, or a special mark should appear for farms with production greater than or equal to 5,000 jars per acre.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Develop a design and write a program to produce a bar chart
Reference No:- TGS02651124

Expected delivery within 24 Hours