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
padilas [110]
2 years ago
10

What is the output of the following program fragment. Choose appropriate data-types of variables to match output.

Engineering
1 answer:
Alexxx [7]2 years ago
3 0

Answer:

1

Explanation:

Given :

i=7;j=8;k=9;

printf(“%d”,(i+10)%k/j);

The printf function only displays the result

%d - is used for the display format

However, the actual calculation is in the expression: (i+10)%k/j

Given the variables :

i = 7 ;

j = 8 ;

k = 9 ;

(i + 10) = (7 + 10) = 17

(i + 10) % k = 17 % 9

% = remainder value after division

17 % 9 = (17 / 9) = 1 remainder 8

17 % 9 = 8

Hence,

(i + 10) % k = 8

(i + 10) % k / j

j = 8

8 / 8

= 1

You might be interested in
Think about a packed lunch and the
Mazyrski [523]

Answer:

They are combination structures made up of solid, and shell structures.

Explanation:

Thinking of a lunch pack which is shaped as a solid bag made up of different compartments to hold food, what comes to mind are;

1. The solid structure: This is seen in the form of the bag which has solid makeup.

2. The shell structure: This is seen in the different compartments holding the different types of foods. Shell structures are usually in the form of containers made to hold something in.

4 0
3 years ago
A 50 Hz, four pole turbo-generator rated 100 MVA, 11 kV has an inertia constant of 8.0 MJ/MVA. (a) Find the stored energy in the
raketka [301]

Given Information:

Frequency = f = 60 Hz

Complex rated power = G = 100 MVA

Intertia constant = H = 8 MJ/MVA

Mechanical power = Pmech = 80 MW

Electrical power = Pelec = 50 MW

Number of poles = P = 4

No. of cycles = 10

Required Information:

(a) stored energy = ?

(b) rotor acceleration = ?

(c) change in torque angle = ?

(c) rotor speed = ?

Answer:

(a) stored energy = 800 Mj

(b) rotor acceleration = 337.46 elec deg/s²

(c) change in torque angle (in elec deg) = 6.75 elec deg

(c) change in torque angle (in rmp/s) = 28.12 rpm/s

(c) rotor speed = 1505.62 rpm

Explanation:

(a) Find the stored energy in the rotor at synchronous speed.

The stored energy is given by

E = G \times H

Where G represents complex rated power and H is the inertia constant of turbo-generator.

E = 100 \times 8 \\\\E = 800 \: MJ

(b) If the mechanical input is suddenly raised to 80 MW for an electrical load of 50 MW, find rotor acceleration, neglecting mechanical and electrical losses.

The rotor acceleration is given by

$ P_a = P_{mech} - P_{elec} = M \frac{d^2 \delta}{dt^2}  $

Where M is given by

$ M = \frac{E}{180 \times f} $

$ M = \frac{800}{180 \times 50} $

M = 0.0889 \: MJ \cdot s/ elec \: \: deg

So, the rotor acceleration is

$ P_a = 80 - 50 = 0.0889 \frac{d^2 \delta}{dt^2}  $

$  30 = 0.0889 \frac{d^2 \delta}{dt^2}  $

$   \frac{d^2 \delta}{dt^2} = \frac{30}{0.0889}  $

$   \frac{d^2 \delta}{dt^2} = 337.46 \:\: elec \: deg/s^2 $

(c) If the acceleration calculated in part(b) is maintained for 10 cycles, find the change in torque angle and rotor speed in revolutions per minute at the end of this period.

The change in torque angle is given by

$ \Delta  \delta = \frac{1}{2} \cdot \frac{d^2 \delta}{dt^2}\cdot (t)^2 $

Where t is given by

1 \: cycle = 1/f = 1/50 \\\\10 \: cycles = 10/50 = 0.2  \\\\t = 0.2 \: sec

So,

$ \Delta  \delta = \frac{1}{2} \cdot 337.46 \cdot (0.2)^2 $

$ \Delta  \delta = 6.75 \: elec \: deg

The change in torque in rpm/s is given by

$ \Delta  \delta = \frac{337.46 \cdot 60}{2 \cdot 360\circ  }   $

$ \Delta  \delta =28.12 \: \: rpm/s $

The rotor speed in revolutions per minute at the end of this period (10 cycles) is given by

$ Rotor \: speed = \frac{120 \cdot f}{P}  + (\Delta  \delta)\cdot t  $

Where P is the number of poles of the turbo-generator.

$ Rotor \: speed = \frac{120 \cdot 50}{4}  + (28.12)\cdot 0.2  $

$ Rotor \: speed = 1500  + 5.62  $

$ Rotor \: speed = 1505.62 \:\: rpm

4 0
3 years ago
Steep safety ramps are built beside mountain highways to enable vehicles with defective brakes to stop safely. A truck enters a
Virty [35]

Answer:

a) The additional time required for the truck to stop is <u>8.5 seconds</u>

b) The additional distance traveled by the truck is <u>230.05 ft</u>

Explanation:

Since the acceleration is constant, the average speed is:

(final speed - initial speed) / 2 = 0.75 v0

Since travelling at this speed for 8.5 seconds causes the vehicle to travel 690 ft, we can solve for v0:

0.75v0 * 8.5 = 690

v0 = 108.24 ft/s

The speed after 8.5 seconds is: 108.24 / 2 = 54.12 ft/s

We can now use the following equation to solve for acceleration:

v^2 - u^2 = 2*a*s

54.12^2 - 108.24^2 = 2*a*690

a = -6.367 m/s^2

Additional time taken to decelerate: 54.12/6.367 = 8.5 seconds

Total distance traveled:

v^2 - u^2 = 2*a*s

0 - 108.24^2 = 2 * (-6.367) * s

solving for s we get total distance traveled = 920.05 ft

Additional Distance Traveled: 920.05 - 690 = 230.05 ft

5 0
3 years ago
What is chemical engineering​
viktelen [127]

Answer:

Chemical engineering is the branch of engineering that deals with chemical production and the manufacture of products through chemical processes

Explanation:

8 0
3 years ago
How is this flying pls explain
nekit [7.7K]

Answer:

engine

Explanation:

as long as the engine and evrything is running it should be good

3 0
2 years ago
Other questions:
  • ): drivers must slow down from 60 to 40 mi/hr to negotiate a severe curve. A warning sign is visible for a distance of 120 ft. H
    7·1 answer
  • Why doesn't glue stick to the inside of the bottle?
    14·1 answer
  • Breaks do not overheat true false ?
    6·1 answer
  • Consider the following signal:
    8·1 answer
  • Ring rolling is a deformation process in which a thick-walled ring of smaller diameter is rolled into a thin-walled ring of larg
    11·1 answer
  • Which Car is more aerodynamic
    12·2 answers
  • For automobile engines, identify the best choice of motor oil.
    7·1 answer
  • The following data were obtained when a cold-worked metal was annealed. (a) Estimate the recovery, recrystallization, and grain
    8·1 answer
  • Explain race condition..<br><br>don't spam..​
    13·2 answers
  • 3. Briefly explain the conduction mechanism in metals?​
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!