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
53. The plan of a building is in the form of a rectangle with
schepotkina [342]

Answer: 150m

Explanation:

The following can be depicted from the question:

Dimensions of outer walls = 9.7m × 14.7m.

Thickness of the wall = 0.30 m

Therefore, the plinth area of the building will be:

= (9.7 + 0.30/2 + 0.30/2) × (14.7 × 0.30/2 + 0.30/2)

= 10 × 15

= 150m

7 0
3 years ago
If block A of the pulley system is moving downward at 6 ft>s while block C is moving down at 18 ft>s, determine the relati
kramer

Answer:

Explanation:

The detailed steps and appropriate calculation with analysis is as shown in the attachment.

3 0
3 years ago
You hang a heavy ball with a mass of 42 kg from a silver rod 2.7 m long by 1.9 mm by 2.6 mm. You measure the stretch of the rod,
nadezda [96]

Answer:

Explanation:

cross sectional area  A = 1.9 x 2.6 x 10⁻⁶ m²

= 4.94 x 10⁻⁶ m²

stress = 42 x 9.8 / 4.94 x 10⁻⁶

= 83.32 x 10⁶ N/m²

strain = .002902 / 2.7

= 1.075 x 10⁻³

Young's modulus = stress / strain

= 83.32 x 10⁶ / 1.075 x 10⁻³

= 77.5 x 10⁹ N/m²

5 0
3 years ago
A power of 100 kW (105 W) is delivered to the other side of a city by a pair of power lines, between which the voltage is 12,000
OLga [1]

Answer:

I = 8.3 Amp

potential drop = 83 V

Explanation:

Power = 100 KW

V = 12,000 V

R = 10 ohms

a)

Calculate current I in each wire:

P = I*V

I = P / V

I = 100 / 12 = 8.333 A

b)

Calculate potential drop in each wire:

V = I*R

V = (8.3) * (10)

V = 83 V

4 0
3 years ago
What is the most common injury caused by working with machines unsafely?
VladimirAG [237]

Answer:

heyooo!!!!!!

Burns and scarring.

hope this helps!!!!

Explanation:

8 0
4 years ago
Read 2 more answers
Other questions:
  • Use the convolutional integral to find the response of an LTI system with impulse response ℎ(????) and input x(????). Sketch the
    8·1 answer
  • Air flows through a device such that the stagnation pressure is 0.4 MPa, the stagnation temperature is 400°C, and the velocity i
    8·1 answer
  • If the efficiency of the boiler is 91.2 % , the overall efficiency of the turbine, which includes the Carnot efficiency and its
    5·1 answer
  • The fluid-conditioning components of hydraulic-powered equipment provide fluid that is clean and maintained at an acceptable ope
    6·1 answer
  • Technician A says if the input signal turn-on time is too fast for the input circuit, your program may operate as though the inp
    11·1 answer
  • Consider the titration of 100.0 mL of 0.200 M CH3NH2 by 0.100 M HCl.
    13·1 answer
  • View the picture below and then correctly answer the questions using the following words: Temperate Zone, Tropical Zone, Polar Z
    6·2 answers
  • What is aviation? What is the difference between aviation and flight?
    9·1 answer
  • In a series circuit, resistance is the simple _____ of all resistors in the circuit.
    5·1 answer
  • For some alloy, the yield stress is 345-MPa (50,000-psi) and the elastic modulus (E) is 103-GPa (15x106 psi). What is the maximu
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!