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
Arisa [49]
3 years ago
8

8.2.1: Function pass by reference: Transforming coordinates. Define a function CoordTransform() that transforms the function's f

irst two input parameters xVal and yVal into two output parameters xValNew and yValNew. The function returns void. The transformation is new
Engineering
1 answer:
ahrayia [7]3 years ago
4 0

Answer:

<em>The output will be (3, 4) becomes (8, 10) </em>

Explanation:

#include <stdio.h>

<em>//If you send a pointer to a int, you are allowing the contents of that int to change. </em>

void CoordTransform(int xVal,int yVal,int* xNew,int* yNew){

*xNew = (xVal+1)*2;

*yNew = (yVal+1)*2;

}

int main(void) {

int xValNew = 0;

int yValNew = 0;

CoordTransform(3, 4, &xValNew, &yValNew);

printf("(3, 4) becomes (%d, %d)\n", xValNew, yValNew);

return 0;

}

You might be interested in
It is desired to produce and aligned carbon fiber-epoxy matrix composite having a longitudinal tensile strength of 630 MPa. Calc
ratelena [41]

Answer:

The answer is below

Explanation:

Given that:

Diameter (D) = 0.03 mm = 0.00003 m, length (L) = 2.4 mm = 0.0024 m, longitudinal tensile strength (\sigma_{cd})=630\ MPa = 630*10^6\ Pa, Fracture strength

(\sigma_f)=5100\ MPa=5100*10^6\ Pa,fiber-matrix\ stres(\sigma_m)=17.5\ MPa=17.5*10^6\ Pa,matrix\ strength=\tau_c=17\ MPa=17 *10^6\ Pa

a) The critical length (L_c) is given by:

L_c=\sigma_f*(\frac{D}{2*\tau_c} )=5100*10^6*\frac{0.00003}{2*17*10^6}=0.0045\ m=4.5\ mm

The critical length (4.5 mm) is greater than the given length, hence th composite can be produced.

b) The volume fraction (Vf) is gotten from the formula:

\sigma_{cd}=\frac{L*\tau_c}{D}*V_f+\sigma_m(1-V_f)\\\\V_f=\frac{\sigma_{cd}-\sigma_{m}}{\frac{L*\tau_c}{D}-\sigma_{m}}  \\\\Substituting:\\\\V_f=\frac{630*10^6-17.5*10^6}{\frac{0.0024*17*10^6}{0.00003} -17.5*10^6} \\\\V_f=0.456

6 0
3 years ago
At the instant under consideration, the hydraulic cylinder AB has a length L = 0.75 m, and this length is momentarily increasing
Inessa [10]

Answer:

vB = - 0.176 m/s   (↓-)

Explanation:

Given

(AB) = 0.75 m

(AB)' = 0.2 m/s

vA = 0.6 m/s

θ = 35°

vB = ?

We use the formulas

Sin θ = Sin 35° = (OA)/(AB) ⇒  (OA) = Sin 35°*(AB)

⇒   (OA) = Sin 35°*(0.75 m) = 0.43 m

Cos θ = Cos 35° = (OB)/(AB) ⇒  (OB) = Cos 35°*(AB)

⇒   (OB) = Cos 35°*(0.75 m) = 0.614 m

We apply Pythagoras' theorem as follows

(AB)² = (OA)² + (OB)²

We derive the equation

2*(AB)*(AB)' = 2*(OA)*vA + 2*(OB)*vB

⇒  (AB)*(AB)' = (OA)*vA + (OB)*vB

⇒  vB = ((AB)*(AB)' - (OA)*vA) / (OB)

then we have

⇒  vB = ((0.75 m)*(0.2 m/s) - (0.43 m)*(0.6 m/s) / (0.614 m)

⇒  vB = - 0.176 m/s   (↓-)

The pic can show the question.

7 0
3 years ago
Read 2 more answers
What are the available motor sizes for 2023 ariya ac synchronous drive motor systems in kw?.
Anika [276]

The available motor sizes for 2023 Ariya AC synchronous drive motor systems are:

40 kW.

62 kW.

160 kW.

<h3>What is a synchronous motor?</h3>

A synchronous motor refers to an alternating current (AC) electric motor in which the rotational speed of the shaft is directly proportional (equal) to the frequency of the supply current, especially at a steady state.

In Engineering, the available motor sizes for 2023 Nissan Ariya AC synchronous drive motor systems include the following:

40 kW.

62 kW.

160 kW.

Read more on synchronous motor here:

brainly.com/question/12975042

#SPJ1

5 0
2 years ago
BRO FNAF ANIMATRONICS ALL OF THEM INCLUDING THE BOOKS AND THE OTHER ONES IN FNAF SPECIAL DELIVERY!
Nezavi [6.7K]
Nice nice. . . . . . .
9 0
3 years ago
Read 3 more answers
A 5-cm-diameter shaft rotates at 4500 rpm in a 15-cmlong, 8-cm-outer-diameter cast iron bearing (k = 70 W/m·K) with a uniform cl
-BARSIC- [3]

Answer:

(a) the rate of heat transfer to the coolant is Q = 139.71W

(b) the surface temperature of the shaft T = 40.97°C

(c) the mechanical power wasted by the viscous dissipation in oil 22.2kW

Explanation:

See explanation in the attached files

5 0
3 years ago
Other questions:
  • A six-lane freeway (three lanes in each direction) currently operates at maximum LOS C conditions. The lanes are 11 ft wide, the
    5·1 answer
  • Ion 2 23
    10·1 answer
  • The level of water in a dam is 6 m. The rectangular gate ABC is pinned at point B so it can rotate freely about this point. When
    12·1 answer
  • A cooking pan whose inner diameter is 20 cm is filled with water and covered with a 4-kg lid. If the local atmospheric pressure
    9·2 answers
  • Blank Complete the following paragraph pertaining to the popular audio file formats.
    7·2 answers
  • "The office personnel at Garden Glory use a database application to record services and related data changes in this database. F
    9·1 answer
  • How could the location of tests affect the performance of a catapult ?
    6·2 answers
  • Solve using Matlab the problems:
    12·1 answer
  • A steam turbine receives steam at 1.5MPa and 220oC, and exhausts at 50kPa, 0.75 dry. Neglecting heat losses and changes in kinet
    6·1 answer
  • Mang Tisoy bought two bags of onion from the market. One bag weighed 8 kg
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!