Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

project-1 For this project, you will import the statistics module. Write a class called Student that has two private data members - the student's name

image text in transcribed

project-1 For this project, you will import the statistics module. Write a class called Student that has two private data members - the student's name and grade. It should have an init method that takes two values and uses them to initialize the data members. It should have a get_grade method. Write a separate function (not part of the Student class) called basic_stats that takes as a parameter a list of Student objects and returns a tuple containing the mean, median, and mode of all the grades. To do this, use the mean, median and mode functions in the statistics module. Your basic_stats function should return those three values as a tuple, in the exact order given above. As an example, your code could be called as follows by the grader: You can test your program with the above example but make sure to not leave that as part of your submission. The file must be named: basic_stats.py

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

Students also viewed these Databases questions

Question

Identify the elements that make up the employee reward package.

Answered: 1 week ago

Question

Understand the purpose, value and drawbacks of the interview.

Answered: 1 week ago