Question: Needs to be written in C++. Write a program that asks the user for the name of a city Have the program create a.txt ile

 Needs to be written in C++. Write a program that asks

Needs to be written in C++.

Write a program that asks the user for the name of a city Have the program create a.txt ile in your working directory with the city's name Ask for the city's population every 20 years from 1950 to 2010 Create a bar chart using asterisks indicating how many thousands of people lived in the city in each of the 4 years and save it to the file A run of the program should look like the following dAusersyidjohannsenidocuments)visual studio 2017 Enter the city's name: My city Enter the population in 1958: 1580 Enter the population in 1978: 2188 Enter the population in 1998: 3468 Enter the population in 2818: 7868 City Name: My City 1950: 1970: 1990: 2010: Creates the file: "My City.txt

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!