Answered step by step
Verified Expert Solution
Question
1 Approved Answer
make a program in python that meets the requirements. answer design questions as well. def isHumidityOver(row,percent): if row[2] > percent: return True else: return False
make a program in python that meets the requirements. answer design questions as well.
def isHumidityOver(row,percent): if row[2] > percent: return True else: return False def isCloudCoverOver(row,percent): if row[3][0] > percent: return True else: return False; def isCloudHeightUnder(row,height): if row[3][1] 0.9 and data[i][3][0] > 0.8 and data[i][3][1] max : max = data[i][0] if data[i][0]
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 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-19Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started