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
The 50mm diameter cylinder is made from Am 1004-T61 magnesium (E = 44.7GPa, a = 26x10^-6/°C)
BartSMP [9]

Answer:

......................

Explanation:

3 0
3 years ago
What is the worlds fastest car
Aneli [31]

Answer:

Thrust SSC

Explanation:

You can look it up

3 0
3 years ago
Read 2 more answers
A rectangular steel bar, with 8" x 0.75" cross-sectional dimensions, has equal and opposite moments applied to its ends.
denpristay [2]

Answer:

Part a: The yield moment is 400 k.in.

Part b: The strain is 8.621 \times 10^{-4} in/in

Part c: The plastic moment is 600 ksi.

Explanation:

Part a:

As per bending equation

\frac{M}{I}=\frac{F}{y}

Here

  • M is the moment which is to be calculated
  • I is the moment of inertia given as

                         I=\frac{bd^3}{12}

Here

  • b is the breath given as 0.75"
  • d is the depth which is given as 8"

                     I=\frac{bd^3}{12}\\I=\frac{0.75\times 8^3}{12}\\I=32 in^4

  • y is given as

                     y=\frac{d}{2}\\y=\frac{8}{2}\\y=4"\\

  • Force is 50 ksi

\frac{M_y}{I}=\frac{F_y}{y}\\M_y=\frac{F_y}{y}{I}\\M_y=\frac{50}{4}{32}\\M_y=400 k. in

The yield moment is 400 k.in.

Part b:

The strain is given as

Strain=\frac{Stress}{Elastic Modulus}

The stress at the station 2" down from the top is estimated by ratio of triangles as

                        F_{2"}=\frac{F_y}{y}\times 2"\\F_{2"}=\frac{50 ksi}{4"}\times 2"\\F_{2"}=25 ksi

Now the steel has the elastic modulus of E=29000 ksi

Strain=\frac{Stress}{Elastic Modulus}\\Strain=\frac{F_{2"}}{E}\\Strain=\frac{25}{29000}\\Strain=8.621 \times 10^{-4} in/in

So the strain is 8.621 \times 10^{-4} in/in

Part c:

For a rectangular shape the shape factor is given as 1.5.

Now the plastic moment is given as

shape\, factor=\frac{Plastic\, Moment}{Yield\, Moment}\\{Plastic\, Moment}=shape\, factor\times {Yield\, Moment}\\{Plastic\, Moment}=1.5\times400 ksi\\{Plastic\, Moment}=600 ksi

The plastic moment is 600 ksi.

3 0
3 years ago
List three types of concurrent engineering in manufacturing.
klio [65]

Answer:

A famous example of concurrent engineering is the development of the Boeing 777 commercial aircraft. The aircraft was designed and built by geographically distributed companies that worked entirely on a common product database of C A TIA without building physical mock-ups but with digital product definitions.

8 0
2 years ago
The efficiency of a transformer is mainly dependent on: a)- Core losses b)- Copper losses c)- Stray losses d)- Dielectric losses
natima [27]

The efficiency of a transformer is mainly dependent on a)- Core losses

Hope this helps! :)

6 0
3 years ago
Other questions:
  • If you are sampling a 50Hz signal, what is the minimum sampling rate necessary to prevent aliasing?Why?
    7·1 answer
  • (20pts) Air T[infinity] = 10 °C and u[infinity] = 100 m/s flows over a flat plate. Assume that the density of air is 1.0 kg/m3 a
    6·1 answer
  • A transformer winding contains 900 turns of wire which creates 400 ohms of primary importance how many terms of the same size wi
    8·1 answer
  • According to the amortization table, Demarco and Tanya will pay a total of in interest over the life of their loan.
    6·2 answers
  • Which section of business plan should be the bulk of the plan
    7·1 answer
  • BIG POINTS AND WILL GIVE BRAINLIEST! Answer all 5 please or I can’t give brainliest and might report!
    10·1 answer
  • Determine the minimum required wire radius assuming a factor of safety of 3 and a yield strength of 1500 MPa.
    15·1 answer
  • How is a disc brake system different from a drum brake system? Short answer
    7·2 answers
  • सत्य से अधिक उपयोगी एवं आज्ञापालन से श्रेष्ठ क्या है ?<br>answer fast plz​
    9·1 answer
  • What is considered the greatest engineering achievement of the 20th century?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!