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
Refrigerant 134a vapor in a piston-cylinder assembly undergoes a process at constant pressure from an initial state at 8 bar and
jonny [76]

Answer:

- Work done is 2.39 kJ

- heat transfer is 20.23 kJ/kg

Explanation:    

Given the data in the question;

First we obtain for specific volumes and specific enthalpy from "Table Properties Refrigerant 134a;

Specific Volume v₁ =  0.02547 m³/kg

Specific enthalpy u₁ = 243.78 kJ/kg

Specific Volume V₂ = 0.02846 m³/kg

Specific enthalpy u₂ = 261.62 kJ/kg

p = 8 bar = 800 kPa

Any changes in kinetic and potential energy are negligible.

So we determine the work done by using the equation at constant pressure

]Work done W = p( v₂ - v₁ )

we substitute

W = 800 kPa( 0.02846 m³/kg - 0.02547 m³/kg )

W = 800 kPa( 0.00299 m³/kg )

W = 2.39 kJ

Therefore, Work done is 2.39 kJ

Heat transfer;

using equation at constant pressure

Heat transfer Q = W + ( u₂ - u₁ )

so we substitute

Q = 2.392 kJ + ( 261.62 kJ/kg - 243.78 kJ/kg )

Q = 2.392 kJ +  17.84 kJ/kg )

Q = 20.23 kJ/kg

Therefore, heat transfer is 20.23 kJ/kg

3 0
3 years ago
"How would you direct traffic in the result of a catastrophic earthquake?"
11Alexandr11 [23.1K]

Answer:

In the result of a earthquake, you should direct people into areas that are safe, such as places where the ground has not been broken up, and then tell people to get out of their cars and be careful. You should also have them carry any valuable items out of the car(if they have time), and then wait until the initial shocks and aftershocks are over, and then tell them to get back into their cars and then drive carefully and safely.

8 0
3 years ago
Read 2 more answers
Calculate the volume of a hydraulic accumulator capable of delivering 5 liters of oil between 180 and 80 bar, using as a preload
Vinil7 [7]

Answer:

1) V_o = 10 liters

2) V_o = 12.26 liters

Explanation:

For isothermal process n =1

V_o =\frac{\Delta V}{(\frac{p_o}{p_1})^{1/n} -(\frac{p_o}{p_2})^{1/n}}

V_o  = \frac{5}{[\frac{72}{80}]^{1/1} -[\frac{72}{180}]^{1/1}}

V_o = 10 liters

calculate pressure ratio to determine correction factor

\frac{p_2}{p_1} =\frac{180}{80} = 2.25

correction factor for calculate dpressure ration  for isothermal process is

c1 = 1.03

actual \ volume = c1\times 10 = 10.3 liters

b) for adiabatic process

n =1.4

volume of hydraulic accumulator is given as

V_o =\frac{\Delta V}{[\frac{p_o}{p_1}]^{1/n} -[\frac{p_o}{p_2}]^{1/n}}

V_o  = \frac{5}{[\frac{72}{80}]^{1/1.4} -[\frac{72}{180}]^{1/1.4}}

V_o = 12.26 liters

calculate pressure ratio to determine correction factor

\frac{p_2}{p_1} =\frac{180}{80} = 2.25

correction factor for calculate dpressure ration  for isothermal process is

c1 = 1.15

actual \volume = c1\times 10 = 11.5 liters

8 0
3 years ago
Select the correct answer. Felix aspires to be an engineer working for the government. What credentials will Felix require to ap
Aneli [31]

Answer:

OB

Explanation:

5 0
3 years ago
13–27. The conveyor belt is moving downward at 4 m&gt;s. If the coefficient of static friction between the conveyor and the 15-k
Feliz [49]

Answer:

See explanation for step by step procedure to get answer.

Explanation:

Given that:

The conveyor belt is moving downward at 4 m>s. If the coefficient of static friction between the conveyor and the 15-kg package B is ms = 0.8, determine the shortest time the belt can stop so that the package does not slide on the belt.

See the attachments for complete steps to get answer.

4 0
3 years ago
Other questions:
  • A rectangular channel 6 m wide with a depth of flow of 3 m has a mean velocity of 1.5 m/s. The channel undergoes a smooth, gradu
    9·1 answer
  • A cruise missile under test is moving horizontally at Ma =2 in the atmosphere at an elevation of 2000 m (Air temperature is 2 °C
    5·1 answer
  • Which of the following is an acronym for a recently introduced type of vehicle that has a high fuel economy rating?A.SUVB.AQIC.H
    6·1 answer
  • The Release Train Engineer is a servant leader who displays which two actions or behaviors?
    6·1 answer
  • This is a classification of back pain based on duration. A) AcuteB) RecurrentC) ChronicD) All of the above
    11·1 answer
  • A stationary conductive loop with an internal resistance of 0.5 Ω is placed in a time varying magnetic field. When the loop is c
    11·1 answer
  • Question 5 of 25
    7·2 answers
  • What types of degradations that can take place in polymers and ceramics?
    11·1 answer
  • 30POINTS
    15·2 answers
  • Unlike in a reguler panel, in a subpanel, the neutral bus must be completely isolated from the
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!