Question: Please help me write the C++ program described below.. (b) [S Points Bonus] Modify your program above that asks the user to enter number of
Please help me write the C++ program described below..

![Bonus] Modify your program above that asks the user to enter number](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f46759c1ea8_27366f4675965c22.jpg)

(b) [S Points Bonus] Modify your program above that asks the user to enter number of cities he/she would like to enter population. Then ask the user to enter the population for each city and produce the bar graph Here is an example of program's output. User input is shown bold. Please enter num ber of cities: 4 Enter the population of city 1: 10000 Enter the population of city 2: 15000 Enter the population of city 3: 9000 Enter the population of city 4: 18000 POPULATION (each 1000 people) City 1: City 2:* City 3:* Input validation: Do not accept population less than 0 Here is an example of program's output if user input is less than zero. (Error message is in Red. (Assume that user enter 3 for number of cities in this case) Enter the population of city 1:-20 Enter the population of city 2:3000 Enter the population of city 3:4000
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
