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
Alex_Xolod [135]
3 years ago
9

This code initially states that n=10 and f=n. Once the code enters the while loop, it stays in the while loop until the conditio

n n>1 is not true. n is subtracted by 1 every iteration. This means that f = 10*9*8*7*6*4*3*2*1. With 9,8,7,6,5,4,3,2, and 1 being repeated n values. The disp (f) command displays the value of f after the while loop, which is equal to (n!).
Engineering
1 answer:
zavuch27 [327]3 years ago
6 0

Answer:

  1. n = 10;
  2. f = n;
  3. while(n > 1)
  4.    n = n - 1;
  5.    f = f * n;
  6. end
  7. disp(f);

Explanation:

The solution code is written in Matlab.

Firstly, we initialize n to 10 and set n to f variable (Line 1-2).

Next, create a while loop that will continue to loop until n is equal or smaller than one. In the loop, decrement n by one and multiply n with current f_variable.

At last display value of f. The output is  3628800.

You might be interested in
Water flows steadily through the pipe as shown below, such that the pressure at section (1) and at section (2) are 300 kPa and 1
steposvetlana [31]

Answer:

The velocity at section is approximately 42.2 m/s

Explanation:

For the water flowing through the pipe, we have;

The pressure at section (1), P₁ = 300 kPa

The pressure at section (2), P₂ = 100 kPa

The diameter at section (1), D₁ = 0.1 m

The height of section (1) above section (2), D₂ = 50 m

The velocity at section (1), v₁ = 20 m/s

Let 'v₂' represent the velocity at section (2)

According to Bernoulli's equation, we have;

z_1 + \dfrac{P_1}{\rho \cdot g} + \dfrac{v^2_1}{2 \cdot g} = z_2 + \dfrac{P_2}{\rho \cdot g} + \dfrac{v^2_2}{2 \cdot g}

Where;

ρ = The density of water = 997 kg/m³

g = The acceleration due to gravity = 9.8 m/s²

z₁ = 50 m

z₂ = The reference = 0 m

By plugging in the values, we have;

50 \, m + \dfrac{300 \ kPa}{997 \, kg/m^3 \times 9.8 \, m/s^2} + \dfrac{(20 \, m/s)^2}{2 \times 9.8 \, m/s^2} = \dfrac{100 \ kPa}{997 \, kg/m^3 \times 9.8 \, m/s^2} + \dfrac{v_2^2}{2 \times 9.8 \, m/s^2}50 m + 30.704358 m + 20.4081633 m = 10.234786 m + \dfrac{v_2^2}{2 \times 9.8 \, m/s^2}

50 m + 30.704358 m + 20.4081633 m - 10.234786 m = \dfrac{v_2^2}{2 \times 9.8 \, m/s^2}

90.8777353 m = \dfrac{v_2^2}{2 \times 9.8 \, m/s^2}

v₂² = 2 × 9.8 m/s² × 90.8777353 m

v₂² = 1,781.20361 m²/s²

v₂ = √(1,781.20361 m²/s²) ≈ 42.204308 m/s

The velocity at section (2), v₂ ≈ 42.2 m/s

3 0
2 years ago
An angle grinder is best suited for use with which material?.
Kaylis [27]

Answer:

Angle grinders are used mostly for copper, iron, steel, lead, and other metals.

Explanation:

I hope it helps! Have a great day!

Lilac~

4 0
2 years ago
Voltage drop testing is being discussed.
Airida [17]

Answer:

Technician B only is correct

Explanation:

Voltage drop testing is a method used to find the amount of electrical resistance available in an high amperage circuit that involves connecting the leads of the meter in parallel to the circuits being tested such that disassembly is not required

In voltage drop test, the red voltmeter lead and black voltmeter lead are placed at two points on the same side of the circuit connection such that the leads are in between two positive connection or two negative connection (rather than connecting the red to the positive and the black to the negative sides of the circuit) and digital voltmeter is used for the voltage drop measurement across the lead while the connection is under load.

Therefore, Technician B only is correct

8 0
2 years ago
Suppose you have two boxes in front of you. One box contains a Thevenin Equivalent (voltage source in series with a resistor) an
fomenos

Answer:

1. Measure the temperature of the boxes and leave them unconnected.

2. Norton reduces his circuit down to a single resistance in parallel with a constant current source. A real-life Norton equivalent circuit would be continuously wasting power (as heat) as the current source dumps energy into the resistor, even when externally unconnected, while a Thevenin equivalent circuit would sit there doing nothing.

3. The Norton equivalent box would get warm and eventually run out of power. The Thevenin equivalent box would stay at ambient temperature.

8 0
3 years ago
Determine the work done by an engine shaft rotating at 2500 rpm delivering an output torque of 4.5 N.m over a period of 30 secon
balu736 [363]

Answer:

work done= 2.12 kJ

Explanation:

Given

N=2500 rpm

T=4.5 N.m

Period ,t= 30 s

torque =\frac{power}{2\pi N}

power=2\pi N\times T

P=2\times \pi \times2500 \times 4.5

P=70,685W

P=70.685 KW

power=\frac{work done}{time}

work done = power * time

                  = 70.685*30=2120.55J

                  = 2.12 kJ

7 0
3 years ago
Other questions:
  • The manufacturer of a 1.5 V D flashlight battery says that the battery will deliver 9 {\rm mA} for 37 continuous hours. During t
    10·1 answer
  • A 0.19-m3 rigid tank equipped with a pressure regulator contains steam at 2 MPa and 300°C. The steam in the tank is now heated.
    12·1 answer
  • In the following code, determine the values of the symbols here and there. Write the object code in hexadecimal. (Do not predict
    15·1 answer
  • Pls help! 39 points!!
    5·2 answers
  • I'm bored. I want to talk to you humans! weird. STUPID QUARANTINE!!! So. What are yall up to?
    12·1 answer
  • The concrete canoe team does some analysis on their design and calculates that they need a compressive strength of 860 psi. They
    15·1 answer
  • A Rankine steam power plant is considered. Saturated water vapor enters a turbine at 8 MPa and exits at condenser at 10 kPa. The
    13·1 answer
  • An alloy is evaluated for potential creep deformation in a short-term laboratory experiment. The creep rate (ϵ˙) is found to be
    8·1 answer
  • A helicopter is hovering in a steady cross wind at a gross weight of 3,000 lb (1,360.8 kg). This helicopter has 275 hp (205 kW)
    10·1 answer
  • 3. Briefly explain the conduction mechanism in metals?​
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!