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
adoni [48]
3 years ago
3

Write an if statement that assigns 20 to the variable y, and assigns 40 to the variable z if the variable x is greater than 100.

Engineering
1 answer:
Umnica [9.8K]3 years ago
5 0

 The command or declaration 'if' is understood as an order in which a decision is generated in front of an alternative proposed as an alternative route to execution.

If the condition is met, it proceeds to take the proposed route, but leaves the structure.

<em># Comparing x to be more than 100 in if-condition</em>

<em>if(x>100):</em>

<em>#Assign 20 to y</em>

<em>y = 20 </em>

<em>#Assign 40 to z</em>

<em>z = 40</em>

Explaining the previous code we can verify that the condition will be applied for values less than 100, so the variables y and z will take the value of 20 and 40 respectively.

You might be interested in
11. Which of the following is the brake fluid most often used?
Olenka [21]
Dot 3 is mostly used in a lot of v4 and v6
4 0
3 years ago
Read 2 more answers
A cylindrical specimen of a titanium alloy having an elastic modulus of 107 GPa (15.5 × 106 psi) and an original diameter of 3.7
Keith_Richards [23]

Answer:

the maximum length of specimen before deformation is found to be 235.6 mm

Explanation:

First, we need to find the stress on the cylinder.

Stress = σ = P/A

where,

P = Load = 2000 N

A = Cross-sectional area = πd²/4 = π(0.0037 m)²/4

A = 1.0752 x 10^-5 m²

σ = 2000 N/1.0752 x 10^-5 m²

σ = 186 MPa

Now, we find the strain (∈):

Elastic Modulus = Stress / Strain

E = σ / ∈

∈ = σ / E

∈ = 186 x 10^6 Pa/107 x 10^9 Pa

∈ = 1.74 x 10^-3 mm/mm

Now, we find the original length.

∈ = Elongation/Original Length

Original Length = Elongation/∈

Original Length = 0.41 mm/1.74 x 10^-3

<u>Original Length = 235.6 mm</u>

5 0
3 years ago
What might cause a shotgun to explode?
Tanzania [10]

Answer:

When you pull the trigger to shoot a shotshell from a shotgun or a cartridge from a rifle or handgun, the firing pin strikes the primer in the base of the cartridge or shotshell. This causes the primer to explode. The spark from the primer ignites the gunpowder, which burns rapidly and converts to a gas.

Explanation:

3 0
3 years ago
Read 2 more answers
Water from the Earth's surface turns into a gas, or water vapor, when it is warmed and
bagirrra123 [75]

Answer:

Evaporation.

Explanation:

Evaporation is the stage of the Water Cycle where water turns into water vapor. The steps following Evaporation in order include Condensation, Precipitation, and Transpiration.

4 0
4 years ago
Read 2 more answers
Show that for a linearly separable dataset, the maximum likelihood solution for the logisitic regression model is obtained by fi
KATRIN_1 [288]

Answer:

Answer for the question:

"Show that for a linearly separable dataset, the maximum likelihood solution for the logisitic regression model is obtained by finding a weight vector w whose decision boundary wx. "

is explained in the attachment.

Explanation:

8 0
3 years ago
Other questions:
  • A water pump delivers 6 hp of shaft power when operating. The pressure differential between the outlet and the inlet of the pump
    9·1 answer
  • A room is cooled by circulating chilled water through a heat exchanger located in the room. The air is circulated through the he
    15·1 answer
  • An existing building is suffering from cracks in the exterior walls. The investigating engineer wants to ensure that the foundat
    11·1 answer
  • Water flows through a horizontal 60 mm diameter galvanized iron pipe at a rate of 0.02 m3/s. If the pressure drop is 135 kPa per
    9·1 answer
  • What are the four types of physical hazards?
    13·2 answers
  • The use of seatbelts in a car has significantly reduced the number of crash fatalities. Which statement best explains how societ
    11·1 answer
  • The only way to know if a design will work in real-world conditions is to build a model, or prototype, based on the plan. This i
    7·2 answers
  • When framing a building, a simple way to estimate the total amount of wall studs needed is to allow
    7·1 answer
  • I love touching the atmospheres crest
    8·1 answer
  • In order to live and grow, bacteria need moisture, food, the right temperature, and ______? Fill in the blank
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!