Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

make a program in python that satisfies the requirements , ,,11 36%|-| 2:57 PM :

ID: 3731808 • Letter: M

Question

make a program in python that satisfies the requirements

, ,,11 36%|-| 2:57 PM :://jhub.cas.mcmaster.ca 5 Control Panel Logout major4_v4 E Menu TrustedPython 3 O MarkdownValidate Major Assignment 4 Version 4 ENGINEER 1DO4 Dr. Ashgar Bokhari McMaster University, Fall 2017 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, rel Humidity, [cloudCover, cloudh

Explanation / Answer

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] < height:
       return True
    else:
       return False;

def heavyFogChance(data):
    max = 0
    min = 100
    count = 0
    for i in range(len(data)):
      if data[i][2] > 0.9 and data[i][3][0] > 0.8 and data[i][3][1] < 50:
         count = count + 1
         if data[i][0] > max :
             max = data[i][0]
         if data[i][0] < min :
             min = data[i][0]
          
    chance = count / len(data)
    time = max - min
    list = []
    list.append(chance)
    list.append(time)
    return list