Question: Use the given partial coding to to given question. Also Show the result. Thanks. Partial coding #include #include using namespace std; int main() { //

Use the given partial coding to to given question.
Also Show the result. Thanks.  Use the given partial coding to to given question. Also Show
the result. Thanks. Partial coding #include #include using namespace std; int main()

Partial coding #include #include using namespace std; int main() { // Open the file. // Display the table headings. // Display the table data. // Use to for loops. Outer for loop to years (initial 1900 to 2020) // Get a value from the file. // Display the year. // Display the bar chart. Use a nester for loop to display * // Close the file. return 0; } Problem Write a program that produces a bar chart showing the population growth of Rocklin, a small town in the Sierra county, at 20-year intervals during the past 100 years. The program should read in the population figures (rounded to the nearest 1,000 people) for 1900, 1920, 1960, 1980, 2000, and 2020. For each year it should display the date and a bar consisting of one asterisk for every 1,000 people. The data can be found in the People.txt file. Here is an example of how the chart looks like based on the data in the file People.txt. Runtime output ROCKLIN POPULATION GROWTH (each * represents 1000 people) 1900 ** 1920 **** 1940 ***** 1960 1980 2000 2020

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!