Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions