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
A panel crimper cuts metal True or False
densk [106]

Answer:

True (They can cut through most metal panels, and probably heavier)

Explanation:

Hope this helps you as much as intended.

3 0
2 years ago
A 7-hp (shaft) pump is used to raise water to an elevation of 15 m. If the mechanical efficiency of the pump is 82 percent, dete
Natali [406]

The maximum volume flow rate of water is determined as 0.029 m³/s.

<h3>Power of the pump</h3>

The power of the pump is watt is calculated as follows;

1 hp = 745.69 W

7 hp = ?

= 7 x 745.69 W

= 5,219.83 W

<h3>Mass flow rate of water</h3>

η = mgh/P

mgh = ηP

m = ηP/gh

m = (0.82 x 5,219.83)/(9.8 x 15)

m = 29.12 kg/s

<h3>Maximum volume rate</h3>

V = m/ρ

where;

  • ρ is density of water = 1000 kg/m³

V = (29.12)/(1000)

V = 0.029 m³/s

Learn more about volume flow rate here: brainly.com/question/21630019

#SPJ12

5 0
1 year ago
The electricity generated by wind turbines annually in kilowatt-hours per year is given in a file. The amount of electricity is
Anika [276]

Answer:

Steps:

1. Create a text file that contains blade diameter (in feet), wind velocity (in mph) and the approximate electricity generated for the year

2.  load the data file for example, in matlab, use ('fileame.txt') to load the file

3. create variables from each column of your data

  for example, in matlab,  

     x=t{1}

     y=t{2}

4. plot the wind velocity and electricity generated.

   plot(x, y)

5. Label the individual axis and name the graph title.

    title('Graph of wind velocity vs approximate electricity generated for the year')

     xlabel('wind velocity')

     ylabel('approximate electricity generated for the year')

5 0
3 years ago
Read 2 more answers
The 30-kg gear is subjected to a force of P=(20t)N where t is in seconds. Determine the angular velocity of the gear at t=4s sta
tatyana61 [14]

Answer:

\omega =\frac{24}{1.14375}=20.983\frac{rad}{s}

Explanation:

Previous concepts

Angular momentum. If we consider a particle of mass m, with velocity v, moving under the influence of a force F. The angular  momentum about point O is defined as the “moment” of the particle’s linear momentum, L, about O. And the correct formula is:

H_o =r x mv=rxL

Applying Newton’s second law to the right hand side of the above equation, we have that r ×ma = r ×F =

MO, where MO is the moment of the force F about point O. The equation expressing the rate of change  of angular momentum is this one:

MO = H˙ O

Principle of Angular Impulse and Momentum

The equation MO = H˙ O gives us the instantaneous relation between the moment and the time rate of change of angular  momentum. Imagine now that the force considered acts on a particle between time t1 and time t2. The equation MO = H˙ O can then be integrated in time to obtain this:

\int_{t_1}^{t_2}M_O dt = \int_{t_1}^{t_2}H_O dt=H_0t2 -H_0t1

Solution to the problem

For this case we can use the principle of angular impulse and momentum that states "The mass moment of inertia of a gear about its mass center is I_o =mK^2_o =30kg(0.125m)^2 =0.46875 kgm^2".

If we analyze the staritning point we see that the initial velocity can be founded like this:

v_o =\omega r_{OIC}=\omega (0.15m)

And if we look the figure attached we can use the point A as a reference to calculate the angular impulse and momentum equation, like this:

H_Ai +\sum \int_{t_i}^{t_f} M_A dt =H_Af

0+\sum \int_{0}^{4} 20t (0.15m) dt =0.46875 \omega + 30kg[\omega(0.15m)](0.15m)

And if we integrate the left part and we simplify the right part we have

1.5(4^2)-1.5(0^2) = 0.46875\omega +0.675\omega=1.14375\omega

And if we solve for \omega we got:

\omega =\frac{24}{1.14375}=20.983\frac{rad}{s}

8 0
2 years ago
You want to see both Michael and Meet Wally Sparks. If you purchase tickets for both
Aleonysh [2.5K]
$2.

Both tickets cost $1.50
$1.50 x 2 = $3
$5 - $3 = $2
6 0
2 years ago
Other questions:
  • Consider the following class definitions: class smart class superSmart: public smart { { public: public: void print() const; voi
    6·1 answer
  • Can anybody teach me how to make an app with flask and pygame together?​
    10·1 answer
  • A market research survey has 15 questions and will be sent to 500 people. What is the total cost to conduct survey if it has a $
    12·1 answer
  • Using phasors, the value of 37 sin 50t + 30 cos(50t – 45°) is _________ cos(50t+(_____°)). Please report your answer so the magn
    5·1 answer
  • Local technology is foundation for modern technology? justufy this statement with example.​
    12·1 answer
  • A three-phase transformer bank consists of 3 single-phase transformers to handle 400 kVA witha 34.5kV/13.8kV voltage ratio. Find
    7·1 answer
  • A car air-conditioning unit has a 0.5-kg aluminum storage cylinder that is sealed with a valve, and itcontains 2 L of refrigeran
    5·1 answer
  • An undeformed specimen of some alloy has an average grain diameter of 0.050 mm. You are asked to reduce its average grain diamet
    11·1 answer
  • Name eight safety electrical devices including their functions and effects if not present.​
    15·1 answer
  • One of the key characteristics of ________ sessions is that no idea should be immediately accepted or rejected. prototype alpha
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!