Computers and Technology

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

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 24.06.2019 23:30, ninja12302
Does anyone have the problem where you try to watch a video to get your answer but it brings up a thing asking your gender to make ads relevant but it doesn't load? btw i won't be able to see the answer so use the comments .
Answers: 1
image
Computers and Technology, 25.06.2019 05:00, Satoetoe24
Craig keeps missing important staff meetings and getting double-booked for appointments. craig should use scheduling software a database diagramming software a word processor
Answers: 1
image
Computers and Technology, 25.06.2019 09:00, Jenifermorales101
Janet has to prepare a presentation on business strategies for work. which guideline should she follow to create an effective presentation? a. use a readable font b. use a multicolored background c. use a small, but stylish font d. include detailed text
Answers: 1
image
Computers and Technology, 25.06.2019 12:00, HotWheels162000
The print command in the powerpoint is found in the? file tab home tab design tab review tab
Answers: 1
Do you know the correct answer?
A. The file USPopulation. txt is provided with this assignment. The file contains the midyear popula...

Questions in other subjects:

Konu
Mathematics, 09.07.2019 15:30