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]
4 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]4 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
30 Points!!
Tresset [83]

Answer:

<em>All About The Space. Since many websites use certain image formats to save space and bandwidth, different types of files are used. the most widely used on sites are JPG (JPEG) or GIF images. These are done to save space. And in some cases certain sizes may stretch the image/photo to where it looks silly or bad, that's why there are also small versions.</em>

Explanation:

Different sizes for different occasions

-Hope This Helps!

5 0
3 years ago
Read 2 more answers
The document that is use in excel to store an work with data that's formatted in a pattern of a uniformly space horizontalal an
Neporo4naja [7]

Answer:

Spreadsheet.

Explanation:

Microsoft Excel is a software application or program designed and developed by Microsoft Inc., for analyzing and visualizing spreadsheet documents.

The document that is use in excel to store a work with data that's formatted in a pattern of uniformly spaced horizontalal and vertical lines is called a spreadsheet.

A spreadsheet can be defined as a file or document which comprises of cells in a tabulated format (rows and columns) typically used for formatting, arranging, analyzing, storing, calculating and sorting data on computer systems.

Additionally, workbooks are known as Microsoft Excel files. An Excel workbook can be defined as a collection of one or more charts and worksheets (spreadsheets) used for data entry and storage in an excel file. In order to create a project on Excel you will have to use a workbook.

5 0
3 years ago
A listing of all the methods that are in the execution chain when an exception is thrown is called a(n) ____.
wolverine [178]

A(n) stack trace is a list of all the steps that make up the performance chain when an exception is thrown.

<h3>What exactly is a stack trace?</h3>
  • A stack trace is a report of the active stack frames at a specific point in the execution of a program in computing (also known as a stack backtrace or stack traceback).
  • Memory is frequently dynamically allocated in two locations during program execution: the stack and the heap.
  • As implied by their names, memory is continually allocated on a stack but not on a heap.
  • This stack is known as the program's function call stack in order to distinguish it from the programming construct stack, which is another term for stack.
  • In terms of technology, after a memory block has been assigned

To learn more about stack trace, refer to:

brainly.com/question/15886149

#SPJ4

4 0
2 years ago
Tom teaches in a high school. He wishes to sort a spreadsheet containing students' marks in various subjects by descending order
cricket20 [7]

Answer:

Select the data to sort

Explanation:

4 0
3 years ago
Whose task it is to ensure that the product flows logically from one step to another?
AleksAgata [21]
UX i believe. Web designer and graphic designer are visual which is the basis of UI. Think of UX as User eXperience and in order to have a good experience it has to flow. If it can flow then u can design it. Think of UX as the skeleton and UI is the flesh
3 0
4 years ago
Other questions:
  • Operating system software allows you to use your fingers, a mouse or other pointing device to select screen controls, such as bu
    5·2 answers
  • Collins and quillian explained the results of priming experiments by introducing the concept of _____ into their network model.
    12·1 answer
  • To decrease the size of text so it will fit into a text box without overflowing, select the
    14·2 answers
  • A _____________ is used to make a deep copy of an object.
    6·1 answer
  • You are angry at a friend who forgot to meet you for lunch, and you decide to write an e-mail about how it made you feel. What s
    11·2 answers
  • Data arranged and stored in a data set
    9·1 answer
  • Presses the Schedulr app icon Selects the list item for CSCI 448 Presses the "View Classroom on Map" button While only performin
    11·1 answer
  • Which of the following is a scam where perpetrators promise high pay for working on different projects like wooden calendars, pa
    13·1 answer
  • Read a sentence from the console.
    6·1 answer
  • Where do animators work?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!