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
I need your help to answer in the picture plss help me!​
Aloiza [94]

this looks like its the different phases of a single cylinder 4 stroke engine what are you doing in the picture or assignment though matching the numbers to the descriptions on the side?

3 0
3 years ago
Who plays a role in the financial activities of a company?
KatRina [158]

Hey,

Who plays a role in the financial activities of a company?

<em>O D. Everyone at the company, including managers and employees</em>

3 0
3 years ago
Use the concept that y = c, −[infinity] &lt; x &lt; [infinity], is a constant function if and only if y' = 0 to determine whethe
attashe74 [19]

Answer:

attached below

Explanation:

5 0
3 years ago
A vector AP is rotated about the Z-axis by 60 degrees and is subsequently rotated about X-axis by 30 degrees. Give the rotation
Musya8 [376]

Answer:

R = \left[\begin{array}{ccc}1&0&0\\0&cos30&-sin30\\0&sin30&cos30\end{array}\right]\left[\begin{array}{ccc}cos 60&-sin60&0\\sin60&cos60&60\0&0&1\end{array}\right]

Explanation:

The mappings always involve a translation and a rotation of the matrix. Therefore, the rotation matrix will be given by:

Let \theta and \alpha be the the angles 60⁰ and 30⁰ respectively

that is \theta = 60⁰ and

\alpha = 30⁰

The matrix is given by the following expression:

\left[\begin{array}{ccc}1&0&0\\0&cos30&-sin30\\0&sin30&cos30\end{array}\right]\left[\begin{array}{ccc}cos 60&-sin60&0\\sin60&cos60&60\0&0&1\end{array}\right]

The angles can be evaluated and left in the surd form.

4 0
2 years ago
Two steel plates are to be held together by means of 16-mm-diameter high-strength steel bolts fitting snugly inside cylindrical
dusya [7]

Answer:

The outer diameter of the spacers that yields the most economical and safe design is 25.03 mm

Explanation:

For steel bolt

Stress = 210 MPa or 210 N/mm2

Pressure = Stress* Area

Pbolt = 210 N/mm2 * 16^2 *(pi)/4

Pbolt = 210 N/mm2 * 200.96 mm^2 = 42201.6  N

For Brass spacer

Pressure = 42201.6  N

Area of Brass spacer = Pressure/Stress

Area of Brass spacer = 42201.6  N/145 N/mm^2 = 291.044 mm^2

Area of Brass spacer = (pi) (d^2 - 16^2)/4 =  291.044 mm^2

d^2 - 16^2 = 291.044 mm^2* 4/(pi) = 370.758

d^2 =  370.758 + 16^2

d^2 =   626.758

d = 25.03 mm

The outer diameter of the spacers that yields the most economical and safe design is 25.03 mm

5 0
3 years ago
Other questions:
  • Both carpenters and building inspectors have been associated with the personality characteristics identified as realistic, conve
    12·1 answer
  • Rain falls on a 1346 acre urban watershed at an intensity of 1.75 in/hr for a duration of 1 hour. The catchment land use is 20%
    10·1 answer
  • Ok I need a new laptop but I'm not sure which one. The Surface laptop 3 is better in many fields like the camera, speaker, audio
    14·1 answer
  • A. Derive linear density expressions for BCC [110] and [111] directions in terms of the atomic radius R.
    7·1 answer
  • Why would Chris most likely conclude that he should seek help? A. He feels in control of his emotions even though people annoy h
    15·2 answers
  • typedef struct bitNode { int data; struct bitNode *left; struct bstNode *right; } bstNode; int solve(bstNode* root) { if (root =
    15·1 answer
  • What are the prefixes for 1, 10, 1000, 1,000,000, .1, .01, .001, .000001
    9·1 answer
  • These are the most widely used tools and most often abuse tool​
    15·2 answers
  • A Styrofoam cup (k = 0.010 W/(m∙ o C)) has cross-sectional area (A) of 3.0 x 10 −2m 2 . The cup is 0.589 cm thick (L). The tempe
    12·1 answer
  • 2) What kinds of food can you eat in space?
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!