Computers and Technology

You will find a text file named 1994_weekly_gas_averages. txt. the file contains the average gas price for each week in the year 1994. (there are 52 lines in the file. line 1 contains the average price for week 1; line 2 contains the average price for week 2, and so forth.) write a program that reads the gas prices from the file, and calculates the average gas price for each month. (to get the average price for a given month, calculate the average of the average weekly prices for that month.) then, the program should create another file that lists the names of the months, along with each month’s average gas price, sorted from lowest to highest.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 16:00, nataliem02
What tool can discover and report computer errors and conflicts that occur when you first turn on a computer and before the operating system?
Answers: 1
image
Computers and Technology, 22.06.2019 15:10, reycaden
David is in week 3 of his current ashford course and has a paper due by monday night at midnight. he has finished everything but the concluding paragraph. as he boots up his computer to work on it, he sees a flash across the screen and then the screen goes black. he begins to panic as he tries desperately to turn the laptop back on. david should have saved his work on what kind of portable device?
Answers: 2
image
Computers and Technology, 22.06.2019 23:30, TheBurntToast
What is the digital revolution and how did it change society? what are the benefits of digital media?
Answers: 1
image
Computers and Technology, 23.06.2019 21:30, shadoris26
To move a file or folder in microsoft windows, you can click and hold down the left mouse button while moving your mouse pointer to the location you want the file or folder to be, which is also known as.
Answers: 3
Do you know the correct answer?
You will find a text file named 1994_weekly_gas_averages. txt. the file contains the average gas pri...

Questions in other subjects: