Question
C++ Write a program that produces a bar chart (a series of asterisks) showing the population growth of Prairieville, a small town in the Midwest,
C++
Write a program that produces a bar chart (a series of asterisks) showing the population growth of Prairieville, a small town in the Midwest, at 20-year intervals during the past 100 years. The program should read in the population figures (rounded to the nearest thousand people) for 1910, 1930, 1950, 1970, 1990, and 2010 from a file (see WebStudy). For each year it should display the date and a bar consisting of one asterisk for each 1000 people.
Here is an example of how the chart might begin:
PRAIRIEVILLE POPULATION GROWTH
(each * represents 1000 people)
1910 **
1930 ****
1950 *****
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started