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
Vikki [24]
3 years ago
15

Write a program that will ask the user for a set of ten numbers. After all ten numbers have been entered, the program will displ

ay the largest and smallest numbers of the data set. The program will then prompt the user whether he/she would like to enter another set of data. When the user indicates he/she is finished entering data sets, the program will finally display the average largest number and the average smallest number for all sets entered.
Computers and Technology
1 answer:
muminat3 years ago
8 0

Answer:

In Python:

nums = []

larg= []

small = []

while True:

   for i in range(10):

       num = int(input(": "))

       nums.append(num)

   print("Smallest: "+str(min(nums))); print("Largest: "+str(max(nums)))

   larg.append(max(nums))

   small.append(min(nums))

   another = int(input("Press 1 to for another sets: "))

   nums.clear()

   if not another == 1:

       break

   

print("Average Large: "+str(sum(larg)/len(larg)))

print("Average Small: "+str(sum(small)/len(small)))

Explanation:

This initializes the list of input numbers

nums = []

This initializes the list of largest number of each input set

larg= []

This initializes the list of smallest number of each input set

small = []

This loop is repeated until, it is exited by the user

while True:

The following iteration is repeated 10 times

   for i in range(10):

Prompt the user for input

       num = int(input(": "))

Add input to list

       nums.append(num)

Check and print the smallest using min; Check and print the largest using max;

   print("Smallest: "+str(min(nums))); print("Largest: "+str(max(nums)))

Append the largest to larg list

   larg.append(max(nums))

Append the smallest to small list

   small.append(min(nums))

Prompt the user to enter another set of inputs

   another = int(input("Press 1 to for another sets: "))

Clear the input list

   nums.clear()

If user inputs anything other than 1, the loop is exited

<em>    if not another == 1:</em>

<em>        break</em>

Calculate and print the average of the set of large numbers using sum and len    

print("Average Large: "+str(sum(larg)/len(larg)))

Calculate and print the average of the set of smallest numbers using sum and len

print("Average Small: "+str(sum(small)/len(small)))

You might be interested in
Lian's dad uses an interactive machine that allows him
klemol [59]

Answer:

introduction to robotics

Explanation:

just took the test

4 0
3 years ago
Read 2 more answers
Karen has found and removed all Web postings about her ex-boyfriend Bill. She has moved on. She’s now researching information ab
Naya [18.7K]

<u>Researching information about a project for work:</u>

The internet has a lot of information to offer when it comes to making a project about almost anything. There are a lot of web sites, posts,  articles, research papers, and even presentations about the topics that are most likely to be chosen for projects.

The best way to evaluate web sites about the content they offer is to know whether the site has an authorized or trusted source or  not.

There are platforms over the internet where people end up giving false information in the name of freedom of speech. The information conveyed should be genuine and supported by facts and figures.

6 0
4 years ago
The users, groups, logins, and roles that have access to a server are called ________________. a. ids b. permissions c. principa
SVETLANKA909090 [29]
<span>The users, groups, logins, and roles that have access to a server are called securables. Correct answer: D
</span><span>A securable is anything that can have permissions granted, denied, or revoked on in SQL Server, while p</span>ermission is used to grant a user account access to a database.

8 0
4 years ago
Jeremy Bridges is an executive for Green Web Designs, where his primary role is to ensure the security of business systems and d
klasskru [66]

Answer:

Chief Security Officer

Explanation:

According to the given statement in the question the Jeremy's role in the company is "Chief Security Officer (CSO)".

The chief Security officer has the role of developing and looking on to the strategies and policies that are required for maintaining the operational, strategic, financial and reputational security  of the  overall company.

6 0
3 years ago
If you are given a list of numbers (b11:c20), and you want the 6th smallest number in that list, which formula is correct?
Mama L [17]

If you are given a list of numbers (b11:c20), and you want the 6th smallest number in that list, the correct formula is =LARGE(B11:C20, 6).

<h3>What is Excel Formula?</h3>

In regards to Microsoft Excel, a formula is seen as a kind of an expression that tends to function on values that can be found within a range of cells.

Note that these formulas are said to often return a result, even if  it is an error. Excel formulas helps a person to carry out calculations such as addition, subtraction, and others.

Thus, If you are given a list of numbers (b11:c20), and you want the 6th smallest number in that list, the correct formula is =LARGE(B11:C20, 6).

Learn more about Excel formula from

brainly.com/question/27927845

#SPJ1

7 0
2 years ago
Other questions:
  • Susan is creating a spreadsheet, and she needs to enter the months of the year in column A. Susan should _____.
    15·2 answers
  • The CPU (central processing unit), also known as a processor, is considered the brain of the computer. What is the CPU’s functio
    6·1 answer
  • Which of the following makes a virtual tour different from a printed map
    6·2 answers
  • This is not a question but I am taking a vote of what device most people use​
    13·1 answer
  • If you type too much text on a PowerPoint slide, the additional text is added to a second slide.
    9·1 answer
  • T.L.E
    6·1 answer
  • 1110011*110011 binary multiplication
    9·2 answers
  • Why does brainly say im in highschool when im in middle school?
    15·2 answers
  • Which database can be used to find studies related to allied health sciences?
    6·1 answer
  • "a web client that connects to a web server, which is in turn connected to a bi application server, is reflective of a"
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!