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
Gwar [14]
3 years ago
7

Adjust list by normalizing When analyzing data sets, such as data for human heights or for human weights, a common step is to ad

just the data. This can be done by normalizing to values between 0 and 1, or throwing away outliers. For this program, adjust the values by subtracting the smallest value from all the values. The input begins with an integer indicating the number of integers that follow. Assume that the list will always contain fewer than 20 integers. Ex: If the input is: 5 30 50 10 70 65 the output is: 20 40 0 60 55 The 5 indicates that there are five values in the list, namely 30, 50, 10, 70, and 65. 10 is the smallest value in the list, so is subtracted from each value in the list. For coding simplicity, follow every output value by a space, including the last one.

Computers and Technology
1 answer:
finlep [7]3 years ago
4 0

Answer:

I've implemented this program using python

userinput = int(input("Length: "))

mylist = []

mylist.append(userinput)

for i in range(1,userinput+1):

   userinp = int(input("Input: "))

   mylist.append(userinp)

smallval = mylist[1]

for i in range(1,len(mylist)):

   if smallval > mylist[i]:

       smallval = mylist[i]

for i in range(1,len(mylist)):

   mylist[i] = mylist[i] - smallval

for i in range(1,len(mylist)):

   print(mylist[i],end=' ')

Explanation:

I've added the full source program as an attachment where I used comments to explain difficult lines

You might be interested in
Before posting a picture online, make sure to
chubhunter [2.5K]
You have to make sure that the site is safe to post to avoid phishing. There are some options available in social media that can help you customize the settings of your viewers. It can give you more control to choose whether you wanted it to be seen in public, by friends or just yourself.  
8 0
3 years ago
Decisions 1 and 3 are both ____________ decisions because ____________________.
Hoochie [10]

The Question given is incomplete so from the internet the complete question is as follows:

Health Day Regional Medical center's management team has several decisions to make. They are attempting to sort out what to do first. The decisions are as follows:

1. Determine which patients to be admitted for the next day.

2. Decide weather or not to purchase the only other medical center in their          region.

3. Decide which candidates will meet the requirements for the nursing training program.

4. Determine weather the medical center should diversify into more advanced (and substantially more costly ) technologies.

Decisions 1 and 3 are both ____________ decisions because ____________________.

A. Programmed decisions; they are novel and complex

B. Non programmed decisions; they are novel and complex  

C. Programmed decisions; they are can be solved using rules and procedures

D. Non programmed decisions; they are novel and complex

E. None of the above is correct

Answer:

Option C is the correct answer.

Decisions 1 and 3 are both Programmed decisions because they can be solved using rules and procedures .

Explanation:

Programmed Decisions can be defined as the ones that are specified and developed for routine problems that are repetitive. These decisions deal with certainty.

Now from the given list of decisions, it is obvious that the decision 1 and 3 are programmed.

  • Patients that are to be admitted must undergo through the rules and regulations so that a decision may be taken.
  • Similarly in the case of nurses, proper testing must be conducted and candidates are selected upon this criteria.

<h2>I hope it will help you!</h2>

5 0
3 years ago
is a measurement that quantifies how much information can be transmitted over the network. A. Memory B. DMZ C. Bandwidth D. Clou
AnnZ [28]

Answer: Bandwidth....

6 0
3 years ago
Zoom meeting ID:987 6858 5587 Password:196133
Llana [10]
I might join I’m not sure tho is there gonna be a lot of ppl?
3 0
3 years ago
Read 2 more answers
Which two editions of Windows 7 support 64 bit CPUs? Choose two out of Professional, Business, Starter, or Home Premium.
Tju [1.3M]
Home premium, professional
6 0
4 years ago
Other questions:
  • While trying to solve a network issue, a technician made multiple changes to the current router configuration file. The changes
    7·1 answer
  • What is the purpose of this diamond shape in a flowchart?
    8·1 answer
  • Elise has just edited two photos of her cat and three different photos of her dog. She needs to save all five of these photos in
    5·2 answers
  • How often are computer and user policies applied after a user has logged into a computer?
    15·1 answer
  • What happens when the following code segment executes if test.txt does not exist?:<br> A,B,C,D?
    7·1 answer
  • The advent of optical discs was made possible by developments in ____ technology.
    5·1 answer
  • MS Excel is a powerful spreadsheet program that helps people with complex mathematical calculations. In what ways could you use
    10·1 answer
  • Outline four types of cyber law.
    14·1 answer
  • Ken has discovered that a vice president of his company has been using his computer to send data about a new product to a compet
    15·1 answer
  • What is the main difference between the ICD-10 annual revision released by the WHO and the ICD-10-CM/PCS annual revision release
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!