build a program that produce a bar chart 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 1000 people) for 1900, 1920, 1940, 1960, 1980, and 2000 form a file.for each yearit should display the date anda bar consisting of one astersisk for each 100 people. the data can be found in the people.dat file.

Please type your subject in the School Subject box. Any other words, including obscure abbreviations, are likely to delay responses from a teacher who knows that subject well.

What are your parameters:

Do you use Excel, Java, VB.net or C++?
Most of the time bar charts are produced with Excel.

For example, try:

http://spreadsheets.about.com/od/excelcharts/ss/Chart_wiz_step.htm

To build a program that produces a bar chart showing the population growth of Prairieville, a small town in the Midwest, at 20-year intervals during the past 100 years, you can follow these steps:

1. Read the population figures from the "people.dat" file. The file should contain the population numbers rounded to the nearest 1000 people for each of the given years: 1900, 1920, 1940, 1960, 1980, and 2000.

2. Create a program that reads the data from the file and stores it in a suitable data structure, such as a list or an array.

3. Calculate the population growth at each interval. To do this, subtract the population figure at the previous interval from the population figure at the current interval.

4. Display the bar chart. For each interval, generate a bar consisting of asterisks, where each asterisk represents 100 people. You can do this by dividing the population growth by 100 and printing that number of asterisks on a single line.

Here is an example implementation in Python:

```python
def read_population_data(file_name):
with open(file_name, 'r') as file:
data = file.read().splitlines()
return [int(population) for population in data]

def calculate_population_growth(population_data):
growth = []
for i in range(1, len(population_data)):
growth.append(population_data[i] - population_data[i-1])
return growth

def display_bar_chart(population_growth):
for i in range(len(population_growth)):
year = 1900 + (i * 20)
asterisks = population_growth[i] // 100
print(f'{year}: {"*" * asterisks}')

file_name = "people.dat"
population_data = read_population_data(file_name)
population_growth = calculate_population_growth(population_data)
display_bar_chart(population_growth)
```

Make sure to have the `people.dat` file in the same directory as the program file.

This program reads the data from the file, calculates the population growth at each interval, and then displays the bar chart with asterisks representing the population growth for each 20-year interval.