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
Setting up network encryption involves
fiasKO [112]
A or B cuz you need one of the two to have WiFi cuz my computer asks if i have an adapter and then SSID
7 0
3 years ago
list the sixth external parts of a computer system and identify which are output and which are input devices
Marianna [84]
<em>Keyboard -----> Input device</em>
<em>Printer  --------> Output device</em>
<em>mouse ---------> Input device</em>
<em>Monitor --------> Output device</em>
<em>CD roam ------> Input device</em>
<em>Projector ------> Output device</em>
4 0
3 years ago
Read 2 more answers
A bag of cookies holds 40 cookies. The calorie information on the bag claims that there are 10 servings in the bag and that a se
laila [671]

Answer:

import java.util.Scanner;

public class ANot {

   public static void main(String[] args) {

   Scanner in = new Scanner (System.in);

       System.out.println("How many cookies did you eat today");

       int numOfCookies = in.nextInt();

       double numCalories = (numOfCookies*300)/4;

       System.out.println("The total number of calories you consumed in "+numOfCookies+" cookies is " +

               " "+numCalories);

   }

}

Explanation:

This code is implemented in Java.

  1. We know from the question that 4 cookies contain 300 calories
  2. Therefore number of calories consumed = (number of cookies eaten*300)/4
  3. To implement this in java we used the scanner class to prompt user for the input
  4. save the input to a variable and write mathematical expression for the number of calories consumed
  5. Then output the result

4 0
3 years ago
Which job role requires you to set up an internet system access
user100 [1]

indeed I think it is correct

4 0
4 years ago
What is the processing speed for the second generation of computers​
Helga [31]

10mbp

I hope it helps you

5 0
3 years ago
Other questions:
  • In Python, what kind of error is returned by the following code? (e.g. NameError, ValueError, IOError, etc.) def my_func(n1, n2)
    8·1 answer
  • Which of the following software monitors a user's activities and sends the information back to another source without the user k
    11·1 answer
  • 100 students were asked to fill out a form with three survey questions, as follows: H: Honor Roll C: Club membership (Robotics C
    7·1 answer
  • The scope of a variable declared within a for() loop is:
    6·1 answer
  • Identify the four basic categories of hardware in a microcomputer system. system unit, modem, ram, and microprocessor system uni
    5·1 answer
  • What is the difference between print and nonprint sources?
    9·1 answer
  • Stella is a bank executive. She is preparing a spreadsheet on the loan repayment schedules of customers. Which function can she
    12·1 answer
  • Your electric service has been failing with some frequency lately because of a lot of storms, and you are looking for more peace
    14·1 answer
  • Page Up and Page Down keys fall under the ? keys category.
    14·2 answers
  • Resumen sobres el correo electrónico​
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!