Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

make a program in python that meets the requirements e Chegg Study | Guided SX ^ Home CSecure https/jhub.cas.mcmaster.ca/user/mehtaa13otebooks/assign9 section1/major4_v1.ipynb jupytermajor4_v1 Last Checkpoint: a

make a program in python that meets the requirements image text in transcribed

image text in transcribed

image text in transcribed

e Chegg Study | Guided SX \ ^ Home CSecure https/jhub.cas.mcmaster.ca/user/mehtaa13otebooks/assign9 section1/major4_v1.ipynb jupytermajor4_v1 Last Checkpoint: a few seconds ago (autosaved) Control PanelLogout File Edit View Insert Cell Kemel Help Not TrustedPython 3 O Background This assignment deals with interpreting a table of weather simulation data, to predict the daily weather. Say that when a weather simulation program runs, it creates a row of output in the form of a Python list: row [hour, temperature, relHumidity, [cloudcover, cloudHeight], [windSpdLow, windSpdHigh]] where hour is an integer between 0 and 23 representing hours past midnight, temperature is a float in Celsius, relHumidity and cloudCover are percents (floats) between 0 and 1, cloudHeight is an integer in metres, and both windSpdLow and windSpdHigh are floats in km/h. The simulation runs n times, and returns the final result as a list of rows data -[ row 1, row 2, ..., row n Your program will contain a set of functions that can be used to interpret this list of simulation rows. Design, implement, and test a program that satisfies the requirements below. Requirements 1. Implement the function isTempUnder (row, temp), which takes ONE ROW of a weather simulation (hour, temp, etc.]) and a float temp, and retuns True If temperature for that row is below temp, False otherwise 2. Implement the function isHumidityOver(row, percent), which takes ONE ROW of a weather simulation ([hour, temp, etc.) and a float percent, and returns True if relHumidity for that row is above percent, False otherwise 3. Implement the function iscloudHeightUnder (row, height), which takes ONE ROW of a weather simulation (hour, temp, etc.]) and an integer 11:34 AM O Type here to search 2018-03-19

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions