Question: Your Task: In this lab you will write two functions, caling them from the main code. Steps: Ask the user for how may grades they
Your Task:
In this lab you will write two functions, caling them from the main code.
Steps:
Ask the user for how may grades they want to enter
Then in a function called getGrade ask for each grace onebyone building them ints a list.
This function will receive the number of gades passed into it
Check to make sure the grade entered is between and inclusive assume a number was entered.
it wili return the list of grade values
After receiving all the grades, print the sorted grades on one line, commaseparated as shown no square brackets or comma after the last item
You will write a function called ListStats
It will receive the list of grades as a parameter
It wil calculate the average, median, standard deviation, min and max of the list
It will return a tuple containing the average median, standard deviation, min and max e
in that order
With the returned statistics values as a tuple print the values to decimal place.
You must deal with the statitics as a tuple and NOT separate variables
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
