Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Complete the A 2 _ Task 3 . py script provided. The script should classify weather stations based on their average annual temperature. Eventually we

Complete the A2_Task3.py script provided. The script should classify weather stations based on their average annual temperature. Eventually we could modify the script to process several rows of data. For now, a few rows of data (represented by lists) have been provided as sample input for testing. a. Assume the first value in the list is the name of a weather station, the second is a zip code, and the third is the average annual temperature. b. Complete the function to accomplish the following: i. If the average annual temperature is greater than 50, add the zipcode to the ZoneAZips list. If the temperature is less than or equal to 50, add the zipcode to the ZoneBZips list. ii. Also, add the average annual temperature value to a list called temp. c. Once all records have been processed, print the results specified: i. The number of Zone A Zips ii. The number of Zone B Zips iii. The min average annual temperature iv. The max average annual temperature

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals Design

Authors: Marion Donnie Dutton Don F. Seaman

14th Edition Globel Edition

1292107634, 978-1292107639

More Books

Students also viewed these Databases questions

Question

Choosing Your Topic Researching the Topic

Answered: 1 week ago

Question

The Power of Public Speaking Clarifying the

Answered: 1 week ago