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]
4 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]4 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
A 304 stainless steel (yield strength 30 ksi) cylinder has an inner diameter of 4 in and a wall thickness of 0.1 in. If it is su
Natasha_Volkova [10]

Answer:

The value we got is 1.423 ksi which is less than 30 and so the material hasn't failed and yielding hasn't occured.

Explanation:

This is a cylindrical thin walled vessel. Thus;

Hoop stress; σ1 = pr/t

Where ;

p is internal pressure

r_o is radius = 4/2 = 2 in

t is thickness of wall = 0.1 in

Thus;

σ1 = 70 x 2/0.1 = 1400 ksi

Longitudinal stress; σ2 = pr/2t

σ2 = 70 x 2/(0.1 x 2) = 700 ksi

Now, we want to find the normal stress. The inner radius of the circle will be; r_i = r_o - t = 2 - 0.1 = 1.9 in

So, normal stress by axial force is given by;

σ_fx = F/A = F/(π(r_o² - r_i²))

We are given that F = 500 lb

σ_fx = 500/(π(2² - 1.9²))

σ_fx = 408.1 ksi

We can now find the torsion from the formula;

τ = (T•r_o)/J

We are given that T = 70 lb.ft = 70 x 12 lb.in = 840 lb.in

J is the polar moment of inertia and has a formula; ((π/2)(r_o⁴ - r_i⁴))

So,J = ((π/2)(2⁴ - 1.9⁴)) = 4.662 in⁴

Thus,τ_xy = (840 x 2)/4.662 = 360.4 ksi

σ1 is in the y direction and σ2 is in the x direction. Thus;

σ_x = σ1 + σ_fx = 700 + 408.1 = 1108.1 ksi

Also, σ_y = σ1 = 1400 ksi

Now distortion energy can be expressed as;

σ_Y² = σ_x - σ_x•σ_y + (σ_y)² + 3(τ_xy)²

Plugging in the relevant values, we obtain ;

σ_Y² = 1108.1² - (1108.1*1400) + 1400² + 3(360.4)²

So, σ_Y² = 2.02 x 10^(6) psi²

σ_Y = √2.02 x 10^(6)

σ_Y = 1423 psi = 1.423 ksi

The question says the yield strength of the material is 30 ksi.

The value we got is less than 30 and so the material hasn't failed and yielding hasn't occured.

8 0
3 years ago
A circuit contains a 40 ohm resistor and a 60 ohms resistor connected in parallel. If you test this circuit with a DMM you shoul
lorasvet [3.4K]
<h2>Answer:</h2>

24Ω

<h2>Explanation:</h2>

When resistors are connected in parallel, the reciprocal of their combined resistance, when read with a DMM (Digital Multimeter - for measuring various properties of a circuit or circuit element such as resistance...) is the sum of the reciprocals of their individual resistances.

For example if two resistors of resistances R₁ and R₂ are connected together in parallel, the reciprocal of their combined resistance Rₓ is given by;

\frac{1}{R_x} = \frac{1}{R_1} + \frac{1}{R_2}

Solving for Rₓ gives;

R_{x} = \frac{R_1 * R_2}{R_1 + R_2}          ------------------(i)

From the question;

Let

R₁ = resistance of first resistor = 40Ω

R₂ =  resistance of second resistor = 60Ω

Now,

To get their combined or total resistance, Rₓ, substitute these values into equation (i) as follows;  

R_{x} = \frac{40 * 60}{40 + 60}

R_{x} = \frac{2400}{100}

R_{x} = 24 Ω

Therefore, the total resistance is 24Ω

4 0
3 years ago
forty gal/min of a hydrocarbon fuel having a spesific gravity of 0.91 flow into a tank truck with load limit of 40,000 lb of fue
Zina [86]

Answer: 131.75minutes

Explanation:

First if all, we've to find the density of liquid which will be:

= Specific gravity × Density to pure water

= 0.91 × 8.34lb/gallon

= 7.59lb/gallon

Then, the volume that's required to fill the tank will be:

= Load limit/Density of fluid

= 40000/7.59

= 5270.1gallon

Now, the time taken will be:

= V/F

= 5270.1/40

= 131.75min

It'll take 131.75 minutes to fill the tank in the truck.

5 0
3 years ago
14. Tires are rotated to
ExtremeBDS [4]

Answer:

A

Explanation:

3 0
3 years ago
Read 2 more answers
2. The metal to be welded is called the
Sveta_85 [38]

Answer:

I believe the answer is "filler metal"

5 0
3 years ago
Other questions:
  • How do you put air knight in slingshock mode.
    9·1 answer
  • A rectangular bar of length L has a slot in the central half of its length. The bar has width b, thickness t, and elastic modulu
    10·1 answer
  • In Lab 7, we worked through a program that displayed the homeless shelter occupancy over time. The same approach can be used for
    14·1 answer
  • What is programming and sensory?
    6·1 answer
  • The signal propagation time between two ground stations in a synchronous satellite link is about millisecond is​
    11·1 answer
  • How to programe a disk
    6·1 answer
  • Hole features are dimensioned by specifying the _____.
    13·2 answers
  • A farmer has 19 sheep on his land. One day, a big storm hits and all but seven run away. How many sheep does the farmer have lef
    10·1 answer
  • Technician A says that rear-wheel drive vehicles usually get better traction than front-wheel drive vehicles. Technician B says
    15·1 answer
  • PLS HELP!!!
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!