in python:
The mode of a list of numbers is the number listed most often. The median of a list of numbers is the value in the middle of the list if the list is arranged in order. For this software solution you will do the following:

Take 10 numbers as input from the user and display the number with the highest mode. If there is a tie, you will need to show all of those numbers.
Your program must create a user-defined function that takes an array of numbers as a parameter and returns the value that appears the most often in the array.
For those same 10 numbers your program must create a user-defined function that takes an array of numbers as a parameter and returns the value which is the median for those numbers.

please help!

Answers

Answer 1

Python can be used to implement central of tendencies such as mean, median and mode using the statistic module

The program in Python, where comments are used to explain each line is as follows:

#This imports the statistics module

import statistics

#This defines the function that calculates the mode

def calcMode(myList):

   #This prints the mode

   print(statistics.multimode(myList))

#This defines the function that calculates the median

def calcMedian(myList):

   #This prints the median

   print(statistics.median(myList))

#The main method begins here

#This initializes the list

myList = []

#The following iteration gets input for the list

for i in range(10):

   myList.append(int(input()))

#This calls the calcMode method

calcMode(myList)

#This calls the calcMedian method

calcMedian(myList)

Read more about similar programs at:

https://brainly.com/question/25026386


Related Questions

What is the output for the following program?
numA = 4
while numA <12:
numA = numA + 3
print(numA)
Output:

Answers

Answer:

13

Explanation:

int numA = 4;

whilie (numA < 12){

  numA += 3;

}

System.out.print(numA);

numA          numA < 12

  4                   true ⇒ numA increases by 3, loop continues

  7                   true ⇒ numA increases by 3, loop continues

  10                 true ⇒ numA increases by 3, loop continues

  13                 false ⇒ loop stops, program them prints out value of numA

Which of the following programming scenarios would benefit most from the use of lists?

Answers

The programming scenarios which would benefit most from the use of lists is: B. writing a program to calculate statistics about a large set of exam scores (e.g highest/lowest score, median average score).

Computer programming involves the process of designing and developing an executable instructions (codes) or collection of data to perform a specific task.

In Computer programming, a list can be defined as an abstract data type that represents a finite number of either ordered or unordered values. Thus, a list can be used to perform the following tasks:

Store data items.Delete data items.Add data items.

A computer program that is used to calculate statistics about a large set of exam scores (e.g highest/lowest score, median average score) would benefit most from the use of lists because it comprises a set of numerical values that can be sorted in either an ordered or unordered array.

Read more on lists here: https://brainly.com/question/15092271

mightier than the waves of the sea is his love for you

Answers

cool but kinda creepy ngl

Drag each label to the correct location on the image.
Identify the parts of the URL.
World Wide Web
server name
resource ID
protocol
domain name

Answers

Answer:

1) Resource ID

2) Server Name

3) Domain Name

4) World Wide Web

5) Protocol

The correct location is Resource ID, Server Name, Domain Name, World Wide Web, Protocol respectively.

What is a website?

The Online Etymology Dictionary states that in 1994, the word "website" first appeared in the English language.

It combines "Web," used in the meaning of the Internet, with "Site." The study of word origins and how their meanings changed over time is known as etymology. The web address of every website begins with "http://".

The website may be one of many various forms, such as an e-commerce website, a social media website, or a blog website. Each website serves a unique purpose, but they all have the feature of having numerous linked web pages.

Resource ID, Server Name, Domain Name, World Wide Web, and Protocol are the right locations, accordingly.

Thus, this is the correct answers for the given situation.

For more details regarding a website, visit:

https://brainly.com/question/29777063

#SPJ2

What does it mean by does the author create an emotional connection toward the readers?

(Emotional connection reading definition)

Answers

Answer:

the author makes an emotional connection between you and the character

Explanation:

short version:you feel the characters emotion

1. It manages the computer's memory and processes, as well as all of its software and hardware.
A. Application software
C. Graphical User Interface
B. Computer Operating System
D. Micro Computer ​

Answers

Answer:

B. Computer operating system

Explanation:

the operating system (or OS) manages all of the hardware and software in the computer, and allows hardware and software to communicate.

We can also figure this out by process of elimination: Application software is just a fancy way to say apps, Graphical User Interface (or GUI) are menus that allow a user to use the computer through a visual representation (what you interact with using your mouse), and microcomputer just means a small computer like a laptop or a phone.

What commands does SuperKarel know that regular Karel does not?

turnleft() and jump()

O

turnRight() and jump()

O

turnAround() and turnRight()

O

turnAround() and jump ()

Answers

Answer:

turnRight and turnaround

Explanation:

The regular karel does not know these commands

The command that SuperKarel know that regular Karel does not is turnAround() and turnRight(). The correct option is C.

What is Karel?

Richard E. Pattis created Karel, an educational object-oriented programming language, to help teach programming to his Stanford University students.

Through simple object-oriented commands, the student learns to program by instructing Karel, a robot, to move, pick up a beeper, place a beeper, and turn off.

KAREL was developed as an educational tool to teach programming language elements to students studying robotics.

KAREL has since evolved into the primary FANUC programming language for robots and robot controllers. This powerful CNC programming language is extremely versatile.

SuperKarel understands two commands that regular Karel does not: turnAround() and turnRight ().

Thus, the correct option is C.

For more details regarding KAREL, visit:

https://brainly.com/question/13278951

#SPJ5

Is this statement true or false? While in slide show mode, if you are not careful you can close the application by clicking the x on the menu bar. True false.

Answers

Considering the Microsoft PowerPoint application, it is False that while in slide show mode, if you are not careful, you can close the application by clicking the X on the menu bar.

Why is it False?

During the slide show of documents whereby the pages of documents are being passed or moved automatically, or by itself, when a user mistakenly or intentionally presses the X on the Menu Bar, the window will ask the user if he wants to save the document before closing.

Slide show in Microsoft PowerPoint is one of the techniques in which a user or Speaker can make a presentation to the audience.

Hence, in this case, it is concluded that the correct answer is False.

Learn more about Microsoft PowerPoint here: https://brainly.com/question/14388120

Answer:

"False"

Explanation:

I took the test!

why does my ps4 keep disconnecting from the internet

Answers

Answer:

It could be a variety of reasons depending on your form of connection. Wireless, it could be distance from router causing packet loss or disconnection. Wired, damaged or poor wire, or bad internet. What do you know about your connection?

goal of any user-friendly game should be to create a good what for the player?

A.
user experience (UX)
B.
user-interface (UI)
C.
user intuition (UIT)
D.
user skill (US).

Middle school question edmentum please add pic or just give answer

Answers

Answer:

with me being a gamer i know for a fact i love getting a good experience but also using my own thoughts into the game to help make decisions. so for the sake of your question its gonna be C; UIT

Answer:

A

Explanation:

User Experience is what makes a use friendly game accessible and enjoyable

To insert a row, right-click the row below where you want to insert a row and then click on ____ the shortcut menu. A. Columns B. Insert C.Rows D.Cells​

Answers

Answer:

I think it's insert. (It's the only one that actually makes sense).

Explanation:

Hope that helps. x

I need help fixing “Love Nikki” game on my phone. I had it on my phone and it worked just fine but then igot a new phone and tried theDownload it but when I opened up the app it kept saying update the game so I clicked update but then after that it wouldn’t even update and it just said update feel rule out mistake. I thought it was just my new phone so I went back to my other phone but it was doing the same thing. I have 5G on my new phone so internets not the problem.

does anybody know how to fix it so I can play the game again?

Answers

Answer:

Try resetting your phone multiple times or uninstall and add the game again. If not, check settings and see whats wrong. Or just sign out of your phone and sign in again. Hope this helps :D

Explain how analog computers are used to process data generated by ongoing physical process​

Answers

Hi hi :)

Analog computers store data in a continuous form of physical quantities and perform calculations with the help of measures.

Okay bye :)

Can anyone help me out with my photography questions?

Answers

Verifying, The answer above me is correct

write a program to print even numbers from 1 to 20​

Answers

Answer:

If qbasic then

pls mark barinist

Answer:

print(“2 4 6 8 10 12 14 16 18 20”)

A company is looking for an employee to install new computers and integrate them into its existing network. Which computer field most likely include this job ?
A. Network systems administrator
B. Information security analysis
C. Computer support
D. Application Development

Answers

A. Network systems administrator

Answer:

A. Network systems administrator

Explanation:

trust me i just did it 1.3.2

Identify the type of software that should be in main memory in order to use the keyboard? *


A. word processing software

B. systems software

C. spreadsheet software

D. applications software

Answers

Answer:

Ok so im not completely sure about this but i think its

Systems Software

Explanation:

because word processor is for typing documents and stuff

spreadsheet is for like tracking you money your daily money or something

or some kind of graph for stuff like that (i think)

applications software well your keyboard isn't a application unless its the on screen keyboard

so the only one left is system software

hope it helped :)))) (●'◡'●)

The software which manages environment for running programs handling error controlling devices configuring the computer system and managing the resources of a computer.
Write the technical term of the given question of the picture .
Correct Answer =⟩ Thanks
Best answer =⟩ Brainliest
Random answer =⟩ Reported and deleted ​

Answers

Answer:

D

Application

System software is the set of programs that enables your computers hardware devices and Application software to work together.

Practical computer systems divide software systems into two major classes: System software: Helps run the computer hardware and computer system itself. System software includes operating systems, device drivers, diagnostic tools and more. ... (Some application software is pre-installed on most computer systems.)

Explanation:

how to stop programs from running at startup windows 10?

Answers

Just go into settings, type in startup apps, and it will take you to an area where you can select certain apps to start or not start when you reset / shut down / turn off your computer and turn it back on again.

Understanding that protection of sensitive unclassified information is:

Answers

Answer:

Not necessarily malignant

Explanation:

As the word "unclassified" shows it's not damaging, however I still doesn't recommend if it's not necessary.

Which of the following statements is true?

A.
Freelancers often charge high hourly rates to make up for the fact that their employers don't provide health care and other benefits.

B.
Freelancers automatically receive free health insurance.

C.
Freelancers are not reliable because there is no way to rate their work ethic or job performance.

D.
Freelancers must hire an accountant to handle their billing and payments.

Answers

Answer:

A.

Explanation:

The correct statement is: A. Freelancers often charge high hourly rates to make up for the fact that their employers don't provide health care and other benefits.

Freelancers often charge high hourly rates to make up for the fact that their employers don't provide health care and other benefits.

Freelancers typically have to factor in the costs of healthcare, retirement savings, and other benefits that are not provided by their clients or employers.

This can lead to higher hourly rates to ensure they can cover these expenses on their own.

Hence,

The statement that is true is A.

To learn more about skills of freelancing visit:

https://brainly.com/question/33779682

#SPJ3

what is font tag? write the name of attribute which is used in font tag​

Answers

Answer:

The font tag is used to change the color, size, and style of a text.The font tag is having three attributes called size, color, and face to customize your fonts. To change any of the font attributes at any time within your webpage, simply use the <font> tag.

about how many smart devices are active today coinbase

Answers

Considering the latest information released by Statisticà, the number of active smart devices in the world today is 21.5 billion.

What is Smart Device?

Smart Device are generally known as electronic devices, that have the capacity to connect with other device or networks through wireless servers like Bluetooth, Zigbée, NFC, Wi-Fi, LiFi, 5G, etc.

Examples of Smart Devices

Smart devices generally include the following:

SmartphonesSmart cars Smart doorbellsSmart refrigeratorsTabletsPCSmart watches, etc.

Hence, in this case, it is concluded that the correct answer is 21.5 billion.

Learn more about Smart Device here: https://brainly.com/question/24803254

Using PowerPoint or Impress guarantees that your presentation will do which of the following? stay on schedule and end on time be clear and understood keep your audience engaged and excited none of the above.

Answers

Answer: it will be none of the above

Explanation: i just took this test. the key word is "guarantees" so yeah.

Using PowerPoint or Impress guarantees that your presentation will: D. none of the above.

A presentation can be defined as an act of speaking formally to an audience, in order to explain an idea, piece of work, project, or product, especially with the aid of multimedia resources or samples.

Generally, a speaker can use either PowerPoint or Impress during the process of a presentation to share vital information with his or her audience.

However, none of the aforementioned software applications can guarantee that your presentation will:

Stay on schedule and end on time.Be clear and understood.Keep your audience engaged and excited.

Read more: https://brainly.com/question/10657795

I need an If else statement that sorts three numbers from a file from least to greatest

Answers

void sort3(int& a, int& b, int& c)
{
if (a > b)
{
std::swap(a, b);
}
if (b > c)
{
std::swap(b, c);
}
if (a > b)
{
std::swap(a, b);
}
}

What are the steps for adding a Watch Window?
Select the cell to watch

Answers

Answer:

How to The Watch Window in Excel

Select the cell you want to watch.

Click the Formulas tab.

Click the Watch Window button. ...

Click the Add Watch. ...

Ensure the correct cell is identified and click Add.

Scroll to the area of the worksheet where you need to add or update values.

Update the cell values.

What is one way hackers can trick you into transmitting personal data over on a public network without your knowledge

Answers

Hmmm when they say that we have a debt of $10,000 but you don't but you don't know that so they ask you for the personal data for your bank so their can get in and get the money for you so you don't have to and that how they trick you

8.3.7: Exclamat!on Po!nts
Write the function exclamation that takes a string and then returns the same string with every lowercase i replaced with an exclamation point. Your function should:

Convert the initial string to a list
Use a for loop to go through your list element by element
Whenever you see a lowercase i, replace it with an exclamation point in the list
Return the stringified version of the list when your for loop is finished
Here’s what an example run of your program might look like:

exclamation("I like music.")
# => I l!ke mus!c.

Answers

The function is an illustration of loops.

Loop instructions are used to repeat operations

The function in Python, where comments are used to explain each line is as follows:

#This defines the function

def exclamation(myStr):

   #This iterates through the string

   for i in range(len(myStr)):

       #This checks if the current character of the string is "i"

       if myStr[i] == "i":

           #If yes, this converts the string to a list

           s = list(myStr)

           #This replaces i with !

           s[i] = '!'

           #This gets the updated string

           myStr = "".join(s)

   #This returns the new string

   return myStr

       

Read more about similar programs at:

https://brainly.com/question/22444309

Vivo critique 6 sentences

Answers

Answer:

im sorry i cant understad

Which is the best autoclicker for godbrigding

Answers

The best auto clicker for godbrigding is
Other Questions
One mom has 3 children, and each child attends a different level of school. If the mom plans to pick her children up, what would be her total distance traveled if she starts at the high school, then goes to the elementary school, and finally the middle school? (Write your answer as a decimal rounded to the nearest tenths place). * 4. Reformers got full support from all sections of the people of thecountry. True/False what are the nine similar patterns that a rehearsal follows? After you have analyzed the data from an experiment, what do you do? O A. Draw a conclusion a O B. Control the variables C. Make a hypothesis D. Identify the variables what are the two primary types of water pollution that have to do with where the pollution came fromPoint source and non point source Physical and liquidGroundwater and surface waterChemical and biological i need help with humans need not apply for codeing Which statement is true?A.Puberty is an easy time of life for all teens.B.Everyone experiences puberty in the same way.C.Everyone starts puberty at the same age.D.Puberty begins at different times for different people. What details in "Blowup: What Went Wrong at Storm King Mountain," make it an example of narrative nonfiction? Increasing y = - 12 + 4 Where do you put the value for how many of each atom you need? Multiple choiceA. Below and before the symbol.B. Above and after the symbol.C. Below and after the symbol.D. Above and before the symbol. The maximum weight of a suitcase that an airline allows is 50 pounds. For every 1 pound, there is approximately 0.45 kilograms. How can we show respect in Multicultural Society? Explain your answer What is the sale price with 15% off? Original price: $110 of bears head phones If the ratio of a to y is 2:5 and y is always 30% of z, then for all possible nonzero valuesof x, y and z, x/z = HELP ME PLZ, NO LINKS OR TROLLS!As the force increases, so does the _______ of the object.A. intensityB. speedC. weightD. volume Suppose you've written a report geared toward a target audience familiar with your topic, but you want your presentation to work for a general audience. What should you include in your speech?If you practice your speech enough, you can read it out loud to your audience without any issues.Practicing helps you identify and improve your public speaking skills before you deliver your speech.Practicing helps you speak up about certain issues and helps you stay focused on your audience.If you practice your speech enough, you will not get nervous in front of an audience. can somebody please tell me if this is correct or not How can i find the answer to this? Which of the following was an important are of 14th and 15th century identify with the help of the given information (A) Bidar (B) Chandragiri (C) Vijayanagara (D) Tirunelveli Which statement best describes wavelength?wavelength is the speed at which a wave travelswavelength is the height vertically of a wavewavelength is the length of wave per secwavelength is the horizontal length of one complete wave cycle