Limited-time offer! Save up to 50% Off | Solutions starting at $6 each  

Trusted by 2+ million users,
1000+ happy students everyday
Showing pages 1 to 1 of 2 pages
CSC A20: Exercise 5Due: 11.59 p.m., Wednesday 9 NovemberWhat to hand inSubmit one file, which must be named "" (without the quotation marks).Check that file name!Once you have submitted, be sure to check that you have submitted the correctversion; new or missing files will not be accepted after the due date. Spelling offilenames, including case, counts.If your file is not named exactly as required,your mark will be zero.If you realize you have submitted an incorrectly named file, just fix the name andresubmit. There is no need to get rid of the wrongly-named file.Watch that clock!We will mark the newest version submitted not later than the deadline. Don'tsubmit just once; instead, submit at least once well in advance, so that you knowwhat you're doing, and then keep submitting new versions as you do more of theexercise. That way, if you run out of time on the last function that you just can't do,you'll still get marks for the others.What to put ine5.pyYou are to write the functions listed in the, leaving your code in You will be working with the same data file as lab 7. Download thefiletemperature.csvand place in the same directory as You may writethe functions in any order you like. We list them here as well for your convenience.Function NameDescriptionopen_temperature_file(str):Open the file of the given filename. Read past thefirst three lines and return the open file.get_month_list(file, int):Return a list of temperatures for the given monthfor all years with data in the given file, where themonth is an int between 0 and 11, representingJanuary to December, respectively. For examplefor the temperature.csv file, January'stemperatures would return [24.7, 16,1, 10.4, 21.5,19.1, 14.0, 8.4, 11.2, 13.4, 22.5, 17.6, 20.4]avg_temp(file, int):Return the average temperature for the given
You’re reading a preview
Preview Documents

To View Complete Document

Click the button to download
Subscribe to our plans

Download This Document