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
GrogVix [38]
4 years ago
7

Write a program that first gets a list of integers from input. The input begins with an integer indicating the number of integer

s that follow. Then, adjust each integer in the list by subtracting the smallest value from all the integers.
Computers and Technology
1 answer:
cluponka [151]4 years ago
8 0

Answer:

The following are the program in the Python Programming Language.

#set variable and get input from user

num = int(input("Enter the number of the data set: "))

#print the following message  

print("Enter the {} numbers:".format(num))

#set empty list type variable

lst = []

#set the for loop

for i in range(num):

 #get the list type input from the user

 n=int(input())

 #add the input in the list

 lst.append(n)

#store the minimum value in the variable

min_val = min(lst)

#print the minimum value of the list

print("The smallest value is:",min_val)

#print the following message

print("The normalized data set is:")

#set loop to print list

for x in lst:

 print(x-min_val)

Explanation:

<u>The following are the description of the program</u>.

  • Firstly, set the variable 'num' in which we get the input from the user and print the following message.
  • Then, set the empty list type variable 'lst' in which we get input from the user through the for loop.
  • Set variable 'min_val' in which we store the minimum value of the list.
  • Then, print the minimum value of the list and print the following message.
  • Finally, set the for loop that prints the list after the deduction by the minimum value of the list.
You might be interested in
Select the correct answer.
Veronika [31]

Explanation:

I think

D.Control towers

hope this helps you

have a great day:)

4 0
3 years ago
Walter is developing a website for the logistics service he offers. He wants to make the website attractive, bright, and visuall
vlada-n [284]

Walter develop the website by:

  • Registering for a domain name
  • Research for a web hosting firm.
  • Have and Prepare your content done.
  • Lastly, create or build your website.

<h3>Can a person develop my own website?</h3>

The use of CMS that is website building platform is known to be a type of platform that can also help one in building websites and handling or monitoring its online content.

Note that by following the above steps,  Walter can create or develop his own website.

Learn more about website from

brainly.com/question/13171394

#SPJ1

6 0
2 years ago
Your mother is sure that you were driving too fast because she knows
Klio2033 [76]

I think the corret answer would be C

5 0
3 years ago
Read 2 more answers
Select the characteristics that describe the evolution of computers that predate the personal computer (select all correct answe
emmasim [6.3K]

Answer:

Options (a), (b) and (d)

Explanation:

  • Option (a) is true that the computers have become smaller and smaller with advancement of the technology. The earlier version of computers used vacuum tubes and are very big in size.
  • As the years passed and due to the advancement of the transistors the computers have become smaller in size.
  • Option (b) is true. With the advancement in the research in circuits used in the computer like Integrated Circuits the computers have become faster.
  • The response time of the operating system has reduced drastically.
  • Option (c) is wrong option. The computers have become cheaper. The transistors are cheaper compared to the vacuum tubes which are used in the earlier computers.
  • The price of the same computer (memory and time efficiency) has become less in the coming years than in the previous years with the advancement in the research of transistors.
  • Option (d) is true. Now-a-days computers support more and more number of applications. Computers has more number of applications in various and diversified fields.
  • With the advancements in the computers, the computers are finding more applications in different fields like medicine, law, transport industries etc.
5 0
4 years ago
A restaurant recorded the ages of customers on two separate days. You are going to write a program to find the minimum age of a
Liono4ka [1.6K]

According to your code, you are setting the first element of the customerAges list as your baseline age. You then use a for loop to check each item in the list to see if it is less than your minimum variable. Then you assign the item to the minimum.

The missing line of code is b, if minimum > item:

I hope this helps!

7 0
4 years ago
Read 2 more answers
Other questions:
  • Variables are: Group of answer choices Operators that perform operations on one or more operands. Symbolic names made up by the
    15·1 answer
  • What can you say about the following Java class definition?
    10·1 answer
  • Windows on the desktop are just one of many objects used in a graphical user interface (GUI)-- buttons, drop-down list boxes, po
    7·1 answer
  • Which operator is used for quotient division in java​
    6·1 answer
  • Create a network for a company that sells shoes. Describe the hardware needed and the size of the network (PAN, LAN, WAN) and ma
    6·1 answer
  • What does CRM stand for?
    10·1 answer
  • What is the primary benefit of using solid state storage
    7·1 answer
  • Rewrite the following using if else statement:
    14·1 answer
  • Ple Choice Worth 5 points)
    11·1 answer
  • 9.3 code practice
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!