subject

A. The file USPopulation. txt is provided with this assignment. The file contains the midyear population of the United States, in thousands, during the years 1950 through 1990. The first line in the file contains the population for 1950, the second line contains the population for 1951, and so forth. Write a program that will a. Read the file contents into a list named population and create two additional lists: i. A list named year with a list of the years from 1950 to 1989 ii. A list named pop_changes which stores the population changes from one year to the next. The change is the difference from one year to the next. The first change is for the year 1950 and is 2114 (153982 in 1951 minus 151868 in 1950). b. Display: i. the average population during the time period 1950 to 1990 ii. the overall population change from 1950 to 1990 iii. The average annual change in population during the time period iv. The year with greatest change in population during the time period v. The year with smallest change in population during the time period c. Prompt the user to input a year. Report: i. the population for that year ii. the change from the previous year iii. the change for the following year

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 06:30
Which option correctly describes a dbms application? a. software used to manage databases b. software used to organize files and folders c. software used to develop specialized images d. software used to create effective presentations
Answers: 1
question
Computers and Technology, 23.06.2019 16:50
15: 28read the summary of "an indian's view of indian affairs."15 betterin "an indian's view of indian affairs," it is asserted that conflicts could be reduced if white americansunderstood native americans..pswhich of the following would make this summary more complete? eleo the fact that chief joseph believes the great spirit sees everythinthe fact that chief joseph was born in oregon and is thirty-eight years oldo the fact that chief joseph states that he speaks from the hearthehehethe fact that chief joseph of the nez percé tribe made this claimebell- ==feetle===-felsefe ==submitmark this and retum.=
Answers: 3
question
Computers and Technology, 24.06.2019 23:00
The valves of the heart and veins are similar in that they both
Answers: 1
question
Computers and Technology, 25.06.2019 02:00
Lisa is making a presentation for her project and she wants to use the logo of her company in her presentation. which element would she use to make her logo stand out in her presentation? a. gradation b. contrast c. alignment d. balance
Answers: 1
You know the right answer?
A. The file USPopulation. txt is provided with this assignment. The file contains the midyear popula...
Questions
question
Biology, 25.07.2020 05:01
Questions on the website: 13722359