Answered step by step
Verified Expert Solution
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started