EssayGhost Assignment代写,Essay代写,网课代修,Quiz代考

EssayGhost-Essay代写,作业代写,网课代修代上,cs代写代考

一站式网课代修,论文代写

高质量的Assignment代写、Paper代写、Report代写服务

EG1hao
网课代修代上,cs代写代考
Python代写
您的位置: 主页 > 编程案例 > Python代写 >
代写Python:python Assignment代写 Northern California Temperature Anomaly - Python代写
发布时间:2021-07-25 15:15:40浏览次数:
Northern California Temperature AnomalyIn this assignment, we ll look at some climate change data from the National Oceanic and Atmospheric Administration (the US government agency in charge of weather and climate data, among other things). In particular, we ll look at one of the headline datasets, global temperature anomaly over the last century. By anomaly they just mean the difference between the annual average temperature and a single baseline temperature. In this case they use the average from 1981-2010 as a baseline (although the data goes from 1880-2018).The following figure, illustrating the trends in temperature anomalies in California, is from a recent article (Links to an external site.)Links to an external site. citing the extreme overnight low temperatures in much of California.   python Assignment代写 Note that they use an average as the baseline for calculating the anomaly values, rather than a single year, because the temperature varies from year to year. If you average over a number of years these variations smooth out.Our program will calculate a moving average of the temperature anomaly data for Sacramento (the latitude and longitude used in the query) during the month of July.You will use this linked file as input: Sacramento-1880-2018.NOAA.csv Week 1During the first week we will write the main loop, input and output components of the program.To begin you can download the provided file of temperature anomaly data for our region: Sacramento-1880-2018.NOAA.csv  You should be able to look at the data in your favorite text editor.  This is what the beginning of the file should look like. Your program should read but ignore the first five lines of the file.38.6 deg N, 121.5 deg E Temperature Anomalies, JulyUnits: Degrees CelsiusBase Period: 1981-2010Missing: -9999Year,Value1880,-1.561881,-0.081882,-0.301883,-1.441884,-2.29Your program will be asking the user for only one piece of information, the number of years over which to average. This number must be an integer between 0 and 60. In this assignment, your program will keep asking until the user enters valid input.The output of your program will be to the screen and an output file called tempAnomaly.txt. The output data will be in two columns separated by tabs. This allows programs like Microsoft Excel or Google Docs to read the data and make a chart.Week 1 DeliverablesSolutions will be posted after the first week for those students who could not complete this part. Therefore, you can not receive any credit for this part after the due date. Week 1 deliverables are in three parts listed below.Part 1 (15 pts)· Have your program ignore the first five lines of the input file. Then make a loop that reads in the data file, and prints out every line.· Change the block under the loop so that the newline is removed after each line of input. The last 5 lines of the printed output should then look exactly like this:2014,-0.062015,-0.402016,0.482017,2.632018,0.18· Submit this program to Kodethon as HW4pt1.pyPart 2 (20 pts)· In the loop block for the program you submitted for Part 1, use the split() string method to extract the year and the temperature into variables. Change the temperature to a floating point number.· Implementation Note: our implementation we store temperature and year as separate lists, tempList and yearLists as we read through the input file. If you are not yet comfortable with lists you can postpone implementing them until the second week of the assignment by concurrently reading and writing the input and output in the same loop block. If you do implement lists, it will be better at this point if you use seperate loops for reading and printing/writing, since you will eventually analyze the whole dataset in-between these phases.· Change your program so that it prints out the year followed by the temperature separated by a tab (instead of the original comma). You will now also include a simple tab separated header “Year Value” similar to the fifth line of the input file as the first line of output. The temperature should be formatted using four fixed decimal places using the format method: {:.4f} .format(average)The last five lines of your output will look like:2014 -0.06002015 -0.40002016 0.48002017 2.63002018 0.1800· Finally, change your program so that it also writes its output to a file called “tempAnomaly.txt”.· When you are sure the output in the file is the same as what was printed, you should comment out the print statements before submission. · Submit this program as HW4pt2.pyPart 3 (15 pts)· Finally we will update the program in part 2, let the user pick the integer k. Before your program reads the input file you will prompt the user for an integer between 0 and 60 (including the integers 0 and 60).The prompt string will be: Enter an integer between 0 and 60: Use the inputCheck.py module to check the user s input can be converted to an integer. Make sure it is between 0 and 60. You will simply re-prompt (using a loop as shown in class) until the user enters correct input. · Submit this program to Kodethon as HW4pt3.pyLooking forward to Week 2?In week two we will be analyzing the data in between the input and output phases of the program to smooth it out and see the trend. The assignment text will be posted before the Week 1 due date. 最先出自Essayghost python代写 合作:315代写

所有的编程代写范围:essayghost为美国、加拿大、英国、澳洲的留学生提供C语言代写、代写C语言、C语言代做、代做C语言、数据库代写、代写数据库、数据库代做、代做数据库、Web作业代写、代写Web作业、Web作业代做、代做Web作业、Java代写、代写Java、Java代做、代做Java、Python代写、代写Python、Python代做、代做Python、C/C++代写、代写C/C++、C/C++代做、代做C/C++、数据结构代写、代写数据结构、数据结构代做、代做数据结构等留学生编程作业代写服务。