1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
zmey [24]
3 years ago
14

project-1 Write a class called Person that has two data members - the person's name and age. It should have an init method that

takes two values and uses them to initialize the data members. Write a separate function (not part of the Person class) called basic_stats that takes as a parameter a list of Person objects and returns a tuple containing the mean, median, and mode of all the ages. To do this, import the statistics library and use its built-in mean, median and mode functions. Your basic_stats function should return those three values as a tuple, in the order given above. For example, it could be used as follows: p1 = Person("Kyoungmin", 73) p2 = Person("Mercedes", 24) p3 = Person("Avanika", 48) p4 = Person("Marta", 24) person_list = [p1, p2, p3, p4] print(basic_stats(person_list)) # should print a tuple of three values The files must be named: std_dev.py
Computers and Technology
1 answer:
MArishka [77]3 years ago
4 0
Hello how are you today
You might be interested in
Consider a system which has a memory access time of 300 nsec. An average page fault takes around 10 millisecond to get serviced.
vladimir1956 [14]

Answer 72 ncs is the answer im pretty sure

8 0
2 years ago
Read 2 more answers
Emotions can have Impact on your driving?
xeze [42]
A negative impact because it makes u not focus on the road
5 0
4 years ago
Give an example of a function from N to N that is: Hint: try using absolute value, floor, or ceiling for part (b). (a) one-to-on
Naily [24]

Answer:

Let f be a function  

a) f(n) = n²  

b) f(n) = n/2  

c) f(n) = 0  

Explanation:  

a) f(n) = n²  

This function is one-to-one function because the square of two different or distinct natural numbers cannot be equal.  

Let a and b are two elements both belong to N i.e. a ∈ N and b ∈ N. Then:

                               f(a) = f(b) ⇒ a² = b² ⇒ a = b  

The function f(n)= n² is not an onto function because not every natural number is a square of a natural number. This means that there is no other natural number that can be squared to result in that natural number.  For example 2 is a natural numbers but not a perfect square and also 24 is a natural number but not a perfect square.  

b) f(n) = n/2  

The above function example is an onto function because every natural number, let’s say n is a natural number that belongs to N, is the image of 2n. For example:

                               f(2n) = [2n/2] = n  

The above function is not one-to-one function because there are certain different natural numbers that have the same value or image. For example:  

When the value of n=1, then

                                  n/2 = [1/2] = [0.5] = 1  

When the value of n=2 then  

                                   n/2 = [2/2] = [1] = 1  

c) f(n) = 0

The above function is neither one-to-one nor onto. In order to depict that a function is not one-to-one there should be two elements in N having same image and the above example is not one to one because every integer has the same image.  The above function example is also not an onto function because every positive integer is not an image of any natural number.

5 0
3 years ago
The actual database of Active Directory shared resources is stored on one or more computers designated as:
loris [4]

Answer:

The network the actual database of active directory shared resources are stored on one or more computers.

Explanation:

The network:- it is shared resources where it accesses or connected multiple personal computers or workstations or laptops.  So that file or folder have shared the resources

Domain controllers:- It is the server where end-user is able to login into domain server

The extranet:- It is an external net where end-user just access the ISS  server.  This data can be shared  inside and  outside of the network  

The Intranet:-it  is internal  access of   network where  just access  the ISS  server, where data  can be shared  only internal

8 0
4 years ago
Write the working of dot matrix printer?<br><br>no links<br>​
lbvjy [14]

The working of dot matrix printer is provided in the picture.

4 0
3 years ago
Other questions:
  • Sam has been asked to classify a number of different processing systems that his consultancy's client uses.
    9·1 answer
  • Write a program that lets a user enter N and that outputs N! (N factorial, meaning N*(N-1)*(N-2)*..\.\*2*1). Hint: Initialize a
    5·1 answer
  • I was not supposed to upgrade my iPad to iOS 11 due to testing but it automatically did when I was charging it. Is there a way t
    11·1 answer
  • A production house needs an operating system that captures, saves, and generates information within specific time. Which type of
    13·2 answers
  • A computer is an electronic device operating under the control of instructions stored in its own memory that can accept, manipul
    11·1 answer
  • PLEASE HELP! 2D Animation!
    12·1 answer
  • Write a function that, given an array A of N integers, of which represents loads caused by successive processes, the function sh
    15·1 answer
  • Examine the following algorithm.
    9·1 answer
  • Sniffer turns the NIC of a system to the promiscuous mode so that it listens to all the data transmitted on its segment. It can
    5·1 answer
  • 5. In which of the following stages of the data mining process is data transformed to
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!