Question: C++ Programming Assignment Below is the text from USPopulation.txt 151868 153982 156393 158956 161884 165069 168088 171187 174149 177135 179979 182992 185771 188483 191141 193526
C++ Programming Assignment
Below is the text from USPopulation.txt
151868 153982 156393 158956 161884 165069 168088 171187 174149 177135 179979 182992 185771 188483 191141 193526 195576 197457 199399 201385 203984 206827 209284 211357 213342 215465 217563 219760 222095 224567 227225 229466 231664 233792 235825 237924 240133 242289 244499 246819 249623
The file named "US Population.txt contains the midyear population of the United States, in thousands, during the years 1950 through 1990. The first line in the file contains the midyear population for 1950, the second line contains the midyear population for 1951, and so forth. Write a C++ program that reads the contents of the file into an array. The program will then determine and display the following information: The average annual change in population during the period from 1950 through 1990. The year with the greatest increase in population during the period from 1950 through 1990. The year with the smallest increase in population during the period from 1950 through 1990
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
