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
erma4kov [3.2K]
3 years ago
9

When analyzing data sets, such as data for human heights or for human weights, a common step is to adjust 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 less 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.
Computers and Technology
1 answer:
Savatey [412]3 years ago
3 0

Answer:

The program to this question can be defined as follows:

Program:

n = int(input("Enter the number: ")) #input value from user end  

print("Entered value: ",n) #print value

lt = [] #defining an empty list

for i in range(n): # loop to input values  

   lt.append(int(input())) #add values in the list

minimum_value = min(lt) # finding minimum value

print("Smallest value: ",minimum_value) #print value

print("Normalising data: ") #print message

for x in lt: #defining loop normalising value

   print(x-minimum_value) #print normalised values

Output:

Enter the number: 5

Entered value:  5

90

60

30

80

70

Smallest value:  30

Normalising data:  

60

30

0

50

40

Explanation:

In the given code a variable "n" is defined, that input value from the user end, in the next step, an empty list is defined, an two for loop is declared, which calculates the given value.

  • In the first for loop, the append method is used, that input values in the given list, and at the last use the min function, that prints the smallest value in the list, and stores its value in the "minimum_value".
  • In the second for loop, the "minimum_value" variable value is subtracted from the list value and print its values.  
You might be interested in
After stating your thesis, follow up by demonstrating the importance of the topic, and explain why the audience or future audien
bearhunter [10]

Answer: audience relevance

Explanation:

Most importantly when stating a thesis we should show and present how the work in the thesis is relevant to the audience. In this way we would be able to connect our research work more to the people and the audience. We should be able to state how our work is going to benefit them, what the people should do in this regard and all the dos and don't must be mentioned clearly while stating our thesis.

4 0
3 years ago
How will 5G technology affect the current classroom? What are some concerns about 5G technology? Is 5G technology worth the risk
notsponge [240]

Answer:Death is a risk of 5g towers

Explanation:Someone caught a video of birds falling dead out of the sky because of the radiation from the 5g towers. There is enough radiation to make your eyes melt before you get close to it.

4 0
3 years ago
Examples in types of experimental methods <br>​
Elodia [21]

Lab Experiment

Field Experiment

Natural Experiment.

3 0
3 years ago
Read 2 more answers
Jqiom:FNU Ojlak toiha 438oy9ctu4jmpvke,u9wjm8i
Mazyrski [523]

Answer:

dfghgfdfghgfdfghgfdfghjhgfdfghjhgfdfghjhgfghjhgferghjhre

Explanation:

3 0
3 years ago
1.How can we be a responsible online user???​
PSYCHO15rus [73]

Answer:

Be respectful – and expect respect.

Protect your reputation.

Protect your privacy.

Watch your tone.

Be sceptical.

3 0
3 years ago
Read 2 more answers
Other questions:
  • Write a static method, getBigWords, that gets a single String parameter and returns an array whose elements are the words in the
    15·1 answer
  • Which view In a presentation program displays you’re slides in full screen modes ?
    8·2 answers
  • 1024 Megabytes = ____________
    14·1 answer
  • How would you build a robot
    7·2 answers
  • Which of the following substances increases in quantity during repititive muscle contraction during oxygen deficti ?
    11·1 answer
  • PLEASE HURRY 30 POINTS
    15·2 answers
  • Compiler is an example of​
    5·1 answer
  • The device that store data and program for current purpose​
    6·2 answers
  • Who is your favorite person from squid game?
    13·2 answers
  • As a technical support rep, michael is responding to a customer's question sent to him via e-mail. what should michael's first t
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!