Answered You can hire a professional tutor to get the answer.

QUESTION

*Intro to Python* Functions for median, std dev, lowest, highest. must use sort() for median 2. can't use min(), max(), sum() 3.

*Intro to Python* Functions for median, std dev, lowest, highest.

1. must use sort() for median

2. can't use min(), max(), sum()

3. use loop for highest and lowest

-------------snippet------

def find_num_score(score):

  return 83

def main():

  sum = 0

  num_score = 0 #number of midterm grades

  average = 0.0

  lowest = 0.0

  highest = 0.0

  median = 0.0

  score = [98, 100, 68, 97, 72, 89, 99, 83, 75, 82, 87, 89, 81, 85, 93]

  # function calls/invocations

  num_score = find_num_score(score) #call by reference

  sum = find_sum(score)

  average = find_average(num_score,sum) # call by value

  #median = find_median (score) #call by referenc

  #lowest = find_lowest (score) #call by reference

  #highest = find_highest(score)

  #stDev = find_stDev(score)

 #print ("The median score is: ", median)

  #print ("The lowest score is: ", lowest)

  #print ("The higest score is: ", highest)

  #print ("The standard dev is: ", stDev)

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question