top of page

Milestone 0:

Team Charter 

87402760_626145508171600_157245842838572
87402248_531482537478691_454910699200996

Milestone 1: 

List of Criteria

Team#19_DP3_ListofCriteria.png

Need Statement 

Team#19_DP3_Needstatement.JPG

Preliminary List of Ideas

Team#19_DP3_PreliminaryListofIdeas.JPG

Milestone 2: 

Individual Concept Sketches & Design Flowcharts

goodarzn_DP3_ConceptSketch2_Page3of6.JPG
goodarzn_DP3_DesignFlowchart2_Page4of6.J
goodarzn_DP3_ConceptSketch3_Page5of6.JPG
goodarzn_DP3_DesignFlowchart_Page6of6.JP
goodarzn_DP3_ConceptSketch1_Page1of6.JPG
goodarzn_DP3_DesignFlowchart1_Page2of6.J

Group Screening Process to choose the overall best design idea based on the criteria listed above

Screen Shot 2020-02-28 at 3.39.07 PM.png
Screen Shot 2020-02-28 at 3.39.56 PM.png
Screen Shot 2020-02-28 at 3.40.10 PM.png

Milestone 3: 

Computing Prototype Parts List 

Screen Shot 2020-02-28 at 3.45.31 PM.png

Test Plan

The test plan, preliminary python file and its associated text file

Screen Shot 2020-02-28 at 3.56.12 PM.png
Screen Shot 2020-02-28 at 3.46.14 PM.png
Screen Shot 2020-02-28 at 3.46.31 PM.png

Milestone 4A: 

Preliminary Design Review Feedback 

Screen Shot 2020-02-29 at 8.22.14 PM.png

Milestone 4B:

This code has an associated text file to work

#Negar Goodarzynejad

#400257706

#Jan 28th, 2020

#MiniMilestone4B

 

 

def read_file(filename):

    sensor_data = []

    with open(filename) as data:

        for line in data:

            line = float(line.rstrip())

            sensor_data.append(line)

    return(sensor_data)

 

 

 

def average_value(data, n):

    if n<= len(data)and n>0:

        items= data[-n:]

        values=[]

        for item in items:

            values.append(item)

        Average= sum (values)/ n

        return(Average)

            

    else:

        if n>len(data):

            return(None)

 

 

def total_above(data,threshold2):

    vals= []

    for item in data:

        if threshold2<item:

            vals.append(item)

    Length= len(vals)

    return(Length)

 

def rate_change(data, n):

    if n <= len(data) and n>0:

        slope= (data[-1]-data[-n])/n

        return(slope)

    

 

def main():

    try:

        textfile='TemperatureData1.txt'

        num= int(input("Please input the number of data points  to be considered in the average calculation."))

        threshold= int(input("Please input your desired threshold value:"))

        number= int(input("Please eneter the number of items to be considered for slope calculation:"))

        data_list= read_file(textfile)

 

        temp_values=[]

        for item in data_list:

            temp_values.append(item)

        average= average_value(temp_values, num)

        choice1=total_above(temp_values,threshold)

        choice2= rate_change(temp_values, number)

        print("The list contains the values as follows:", data_list,'\t',"the average is:", round(average,2),'\t', "The threshold is passed by this many times:",round(choice1,2), '\t', "finally, the slope is:" ,round(choice2,2)) 

 

 

    except IOError:

        print("File cannot be identified. Retry")

    except ZeroDivisionError:

        print("This value cannot be equal to zero.")

    except ValueError:

        print("Please do not input numbers in their alphabetical form, should be numerical.")

    except TypeError:

        print("Make sure that the number of items for slope and average calculation are positive values and excluding zero.")

    

 

main()  

  • Facebook - White Circle
  • Pinterest - White Circle
  • Instagram - White Circle

© 2019 by Negar Goodarzynejad

bottom of page