Question
Write a program that produces a bar chart showing the population growth of Pakistan, at 20 years intervals during the past 100 yrs. The program
Write a program that produces a bar chart showing the population growth of Pakistan, at 20 years intervals during the past 100 yrs. The program should read in population figures (rounded to the nearest 1000 people) for 1900, 1920, 1940, 1960, 1980, 2000. For each year it should display the date and bar consisting of one asterisk for each 1000 people. It should display like this: Plattsburgh Population Growth (each*represents 1000 people)(7.5 Marks) 1900 ** 1920 **** 1940 ****** 1960 ******** 1980 ********** 2000 ************ The following is the population: 2157(1900) 4289(1920) 5317(1940) 7215(1960) 10789(1980) 12984(2000).
Programing language: C++
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