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
An Ideal gas is being heated in a circular duct as while flowing over an electric heater of 130 kW. The diameter of duct is 500
Rashid [163]

Answer:

Exit temperature = 32 °C

Explanation:

We are given;

Initial Pressure;P1 = 100 KPa

Cp =1000 J/kg.K = 1 KJ/kg.k

R = 500 J/kg.K = 0.5 Kj/Kg.k

Initial temperature;T1 = 27°C = 273 + 27K = 300 K

volume flow rate;V' = 15 m³/s

W = 130 Kw

Q = 80 Kw

Using ideal gas equation,

PV' = m'RT

Where m' is mass flow rate.

Thus;making m' the subject, we have;

m' = PV'/RT

So at inlet,

m' = P1•V1'/(R•T1)

m' = (100 × 15)/(0.5 × 300)

m' = 10 kg/s

From steady flow energy equation, we know that;

m'•h1 + Q = m'h2 + W

Dividing through by m', we have;

h1 + Q/m' = h2 + W/m'

h = Cp•T

Thus,

Cp•T1 + Q/m' = Cp•T2 + W/m'

Plugging in the relevant values, we have;

(1*300) - (80/10) = (1*T2) - (130/10)

Q and M negative because heat is being lost.

300 - 8 + 13 = T2

T2 = 305 K = 305 - 273 °C = 32 °C

13000 + 300 - 8000 = T2

6 0
3 years ago
Technician A says that a voltage drop of 0.8 volts on the starter ground circuit is within specifications. Technician B says tha
Romashka-Z-Leto [24]

Answer:

Technician A is wrong

Technician B is right

Explanation:

voltage drop of 0.8 volts on the starter ground circuit is not within specifications. Voltage drop should be within the range of 0.2 V to 0.6 V but not more than that.

A spun bearing can seize itself around the crankshaft journal causing it not to move. As the car ignition system is turned on, the stater may draw high current in order to counter this seizure.

8 0
3 years ago
You have a motor such that if you give it 12 Volt, it will eventually reach a steady state speed of 200 rad/s. If it starts from
Aleksandr [31]

Answer:

a) \frac{Ws}{Es}  = \frac{200}{1+1.2s}

b) attached below

c) type zero system

d) k > \frac{g}{200}

e) The gain K increases above % error as the  steady state speed increases

Explanation:

Given data:

Motor voltage  = 12 v

steady state speed = 200 rad/s

time taken to reach 63.2% = 1.2 seconds

<u>a) The transfer function of the motor from voltage to speed</u>

let ; \frac{K1}{1+St} be the transfer function of a motor

when i/p = 12v then steady state speed ( k1 ) = 200 rad/s , St ( time constant ) = 1.2 sec

hence the transfer function of the motor from voltage to speed

= \frac{Ws}{Es}  = \frac{200}{1+1.2s}

<u>b) draw the block diagram of the system with plant controller and the feedback path </u>

attached below is the remaining part of the detailed solution

c) The system is a type-zero system because the pole at the origin is zero

d) ) k > \frac{g}{200}

7 0
3 years ago
What financial arguments could you use to justify your proposed
Gnoma [55]

The recommendation to segregate FLTs and the workers are as follows:-1)Reputation of warehouse:- To be in the market the reputation of warehouse should be good,it can only happen when the worker of that warehouse is happy with the management looks after worker external and internal affairs. There should be two pathways one for vehicle and other for walking in which both can’t use vice versa.2)High Profitability:- When there is no incident or accident happens between the FLTs and the workers in the warehouse then off course the worker will be regular at work then there will be high profit .3)Insurance premium:- If there is zero accident happens in the ware house then there will no claim, the company will be in the profit..

7 0
3 years ago
How do u charge ur phone? :)
Pepsi [2]
With a phone charger.
7 0
2 years ago
Read 2 more answers
Other questions:
  • Phil decided to rescue Bobo the Dancing Bear from a traveling circus that was closing its business. Although Bobo was a well-beh
    12·1 answer
  • Why dues brainy exist as a learning platform when it is just full of answers and you won't learn anything?
    8·1 answer
  • A signal containing both a 5k Hz and a 10k Hz component is passed through a low-pass filter with a cutoff frequency of 4k Hz. Wh
    9·1 answer
  • Describing Tasks for Stationary Engineers Click this link to view O*NET’s Tasks section for Stationary Engineers. Note that comm
    12·2 answers
  • What is the reading of this Dial Caliper?
    9·1 answer
  • Does anyone know obamas last name???? please help its for a friend I swear!!!111!!11!
    8·1 answer
  • A control system that is used in elevator system
    7·1 answer
  • In a device to produce drinking water, humid air at 320C, 90% relative humidity and 1 atm is cooled to 50C at constant pressure.
    14·1 answer
  • A single phase molor is located
    14·1 answer
  • Which of the following would be addressed by an employer completing an EAP template?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!