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
In a CNC machining operation, the has to be moved from point (5, 4) to point(7, 2)along a circular path with center at (7,2). Be
notka56 [123]

Answer: hello your question is incomplete below is the complete question

answer:

N010 GO2 X7.0 Y2.0 15.0 J2.0  ( option 1 )

Explanation:

Given that the NC machining has to be moved from point ( 5,4 ) to point ( 7,2 ) along a circular path

GO2 = circular interpolation in a clockwise path

G91 = incremental dimension

<em>hence the correct option is </em>:

N010 GO2 X7.0 Y2.0 15.0 J2.0  

6 0
3 years ago
A tension test is carried out on an Al alloy specimen which has an original diameter of 0.505 in and an original gauge length of
Contact [7]

Answer:

Detailed solution is given in attached image

5 0
3 years ago
Water is the working fluid in an ideal Rankine cycle. Saturated vapor enters the turbine at 12 MPa, and the condenser pressure i
Brilliant_brown [7]

Answer:

\dot Q_{in} = 372.239\,MW

Explanation:

The water enters to the pump as saturated liquid and equation is modelled after the First Law of Thermodynamics:

w_{in} + h_{in}- h_{out} = 0

h_{out} = w_{in}+h_{in}

h_{out} = 12\,\frac{kJ}{kg} + 191.81\,\frac{kJ}{kg}

h_{out} = 203.81\,\frac{kJ}{kg}

The boiler heats the water to the state of saturated vapor, whose specific enthalpy is:

h_{out} = 2685.4\,\frac{kJ}{kg}

The rate of heat transfer in the boiler is:

\dot Q_{in} = \left(150\,\frac{kg}{s}\right)\cdot \left(2685.4\,\frac{kJ}{kg}-203.81\,\frac{kJ}{kg} \right)\cdot \left(\frac{1\,MW}{1000\,kW} \right)

\dot Q_{in} = 372.239\,MW

3 0
3 years ago
Read 2 more answers
An inventor claims to have developed a refrigerator that at steady state requires a net power input of 1.1 horsepower to remove
Lynna [10]

Answer:

The inventor's claim is false in the sense that no thermal machine can violate the first thermodynamic law.

Explanation:

The inventor's claim could not be possible as no thermal machine can transfer more heat than the input work consumed. If we expose the thermal efficiency:

n=Q out / W in

Where Q and W both must be in the same power unit, so we will convert the remove heat from BTU/hr to hp:

12000 BTU/hr = 4.72 hp

Therefore by comparing, we notice that the removing heat of 4.75 hp is large than the delivered work of 1.11 hp. By evaluating the efficiency:

[tex]n=4.75 hp / 1.1 hp  = 4.3 > 1[/tex]

6 0
3 years ago
Antilaser eyewear should be worn when a laser​ level's output is greater than​ ____
creativ13 [48]

Answer: 5mW

Explanation:

8 0
3 years ago
Other questions:
  • A commercial refrigerator with refrigerant -134a as the working fluid is used to keep the refrigerated space at -30C by rejectin
    10·3 answers
  • A high-voltage direct-current (dc) transmission line between Celilo, Oregon and Sylmar, California is 845 mi in length. The line
    15·1 answer
  • A 356 cast aluminum test bar is tested in tension. The initial gage length as marked on the sample is 50mm and the initial diame
    9·1 answer
  • Assume a person is making a 350 mile trip from Amherst to Washington DC has four modes available to them: air; auto; train; ship
    10·1 answer
  • Disc brake rotors that are too thin cannot handle as much heat and will experience ___________.
    6·1 answer
  • Energy that causes a transfer of heat between marterials
    13·1 answer
  • The ultimate BOD of a river just below a sewage outfall is 50.0 mg/L, and the oxygen deficit at the outfall D0 is 2.0 mg/L. The
    6·1 answer
  • What type of social engineering targets particular?.
    11·1 answer
  • What is the first test you should do when checking the charging system?
    12·1 answer
  • 8. What are used by the project architect to depict different building systems and to show how they correlate to one anothe
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!