Question: Define the following functions in a module called gradecruncher : gradeave(data) : takes a list of integer values and returns the average value (avg). grademin(data)

Define the following functions in a module calledgradecruncher:

  • gradeave(data): takes a list of integer values and returns the average value (avg).
  • grademin(data): takes a list of integers and returns the smallest value.
  • gradedev(data): takes a list of integers[x1,x2,x3,...,xn]
  • and returns the standard deviation

sd=(x1avg)2+(x2avg)2++(xnavg)2n

(Use math.pow() and math.sqrt() library functions)

  • gradeless(data): takes a list of integers and returns the number of values below average.

Where possible, all above functions must usefor loopswithout indexing (no range function).

In the main file, write code in themainfunction to prompt the user for 10 grade values, store them in a list and then call the above functions with the list as an argument and print the results with proper messages.

All output is done in themainfunction.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!