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
Alona [7]
3 years ago
13

12.28 LAB: Output values in a list below a user defined amount - functions Write a program that first gets a list of integers fr

om input. The input begins with an integer indicating the number of integers that follow. Then, get the last value from the input, and output all integers less than or equal to that value. Ex: If the input is: 5 50 60 140 200 75 100 the output is: 50 60 75 The 5 indicates that there are five integers in the list, namely 50, 60, 140, 200, and 75. The 100 indicates that the program should output all integers less than or equal to 100, so the program outputs 50, 60, and 75.
Engineering
1 answer:
Anastaziya [24]3 years ago
8 0

Answer:

def output_ints_less_than_or_equal_to_threshold(user_values, upper_threshold):

   for value in user_values:

       if value < upper_threshold:

           print(value)  

def get_user_values():

   n = int(input())

   lst = []

   for i in range(n):

       lst.append(int(input()))

   return lst  

if __name__ == '__main__':

   userValues = get_user_values()

   upperThreshold = int(input())

   output_ints_less_than_or_equal_to_threshold(userValues, upperThreshold)

You might be interested in
which of the following statements are true about client-side DNS? (Choose all that apply). a. If an APIPA address is assigned, t
Brums [2.3K]

The statements which are true about client-side DNS include all of the following;

B. Client-side DNS should be configured to point towards the DNS server that is authoritative for the domain that client wants to join.

C. Check out DNS settings using the NSLookup command.

D. Check out DNS settings using the DIG command.

E. The cache.dns file has the IP addresses of the 13 root DNS servers.

B. If a web site can be reached by IP address and not by host name, then DNS or the Hosts file would be the problem.

<h3>What is a DNS server?</h3>

In Computer technology, a DNS server can be defined as a type of server that is designed and developed to translate domain names into IP addresses, so as to allow end users access websites and other internet resources through a web browser.

This ultimately implies that, a DNS server simply refers to a type of server that is designed and developed to translate requests for domain names into IP addresses for end users.

Read more on a domain names here: brainly.com/question/19268299

#SPJ1

5 0
1 year ago
Yield and tensile strengths and modulus of elasticity . with increasing temperature. (increase/decrease/independent)
meriva

Answer:

Yield strength, tensile strength decreases with increasing temperature and modulus of elasticity decreases with increasing in temperature.

Explanation:

The modulus of elasticity of a material is theoretically a function of the shape of curve plotted between the potential energy stored in the material as it is loaded versus the inter atomic distance in the material. The temperature distrots the molecular structure of the metal and hence it has an effect on the modulus of elasticity of a material.

Mathematically we can write,

E(t)=E_o[1-a\frac{T}{T_m}]

where,

E(t) is the modulus of elasticity at any temperature 'T'

E_o is the modulus of elasticity at absolute zero.

T_{m} is the mean melting point of the material

Hence we can see that with increasing temperature modulus of elasticity decreases.

In the case of yield strength and the tensile strength as we know that heating causes softening of a material thus we can physically conclude that in general the strength of the material decreases at elevated temperatures.

6 0
3 years ago
REVVIVE ME MY MOM WALKED IN MY ROOM AND SCARED THE BAJESUS OUTTA ME
bagirrra123 [75]
Ok *revives* r u ok now
7 0
2 years ago
Read 2 more answers
Select the correct answer.
juin [17]
Orthographic projection, common method of representing three-dimensional objects, usually by three two-dimensional drawings in each of which the object is viewed along parallel lines that are perpendicular to the plane of the drawling.
4 0
2 years ago
If the driver gear has 5 teeth and the driven gear has 10 teeth,what is the gear ratio?​
shepuryov [24]
The on that has ten teeth
6 0
2 years ago
Read 2 more answers
Other questions:
  • Air is compressed in a piston-cylinder device. List three examples of irreversibilities that could occur
    13·1 answer
  • The nameplate on a 70 kVA transformer shows a primary voltage of 480 volts and a secondary voltage of 115 volts. We wish to dete
    10·1 answer
  • Technician A says that reversing the direction of refrigerant (as with a heat pump system) could be done to provide cabin heat.
    14·1 answer
  • Before accurate distance standards, a cubit was the length of whose forearm?
    5·1 answer
  • A block of mass 0.75 kg is suspended from a spring having a stiffness of 150 N/m. The block is displaced downwards from its equi
    5·2 answers
  • The air loss rate for a straight truck or bus with the engine off and the brakes
    11·1 answer
  • Can some one help me with this plumbing question. Even just a guess.<br> Plz no shady links
    11·2 answers
  • A force measuring instrument comes with a certificate of calibration that identifies two instrument errors and assigns each an u
    12·1 answer
  • It is better to know or not to know?​
    6·2 answers
  • A jet of water 75m in diameter,issues with a velocity of 30m/s and impinge on a stationary plate which distort its forward motio
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!