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]
2 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]2 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
What is the least count of screw gauge?<br> (a) 0.01 cm<br> (b) 0.001 cm<br> (c) 0.1 cm<br> (d) 1 mm
Nonamiya [84]
Its 0.001

0.01 x100 = 1mm
0.001x100=0.1mm
0.1=10mm
1m
3 0
2 years ago
Air enters a diffuser operating at steady state at 540°R, 15 lbf/in.2, with a velocity of 600 ft/s, and exits with a velocity of
yKpoI14uk [10]

Answer: Hello the question is incomplete below is the missing part

Question:  determine the temperature, in °R, at the exit

answer:

T2= 569.62°R

Explanation:

T1 = 540°R

V2 = 600 ft/s

V1 = 60 ft/s

h1 = 129.0613  ( value gotten from Ideal gas property-air table )

<em>first step : calculate the value of h2 using the equation below </em>

assuming no work is done ( potential energy is ignored )

h2 = [ h1 + ( V2^2 - V1^2 ) / 2 ] * 1 / 32.2 * 1 / 778

∴ h2 = 136.17 Btu/Ibm

From Table A-17

we will apply interpolation

attached below is the remaining part of the solution

8 0
2 years ago
A cylinder of aluminum-magnesium alloy 0.5 m long is subjected to an elastic tensile stress of 10.2 MPa. The measured elastic el
elena55 [62]

Answer:

E= 15 GPa.

Explanation:

Given that

Length ,L = 0.5 m

Tensile stress ,σ = 10.2 MPa

Elongation ,ΔL = 0.34 mm

lets take young modulus  = E

We know that strain ε given as

\varepsilon =\dfrac{\Delta L}{L}

\varepsilon =\dfrac{0.34}{0.5\times 1000}

\varepsilon =0.00068

We know that

\sigma = \varepsilon  E\\\\E=\dfrac{10.2}{0.00068}\\E= 15000\ MPa\\E=15\ GPa

Therefore the young's modulus will be 15 GPa.

8 0
3 years ago
a) find the state-space representation of the system. b) is the system controllable? why? c) is the system observable? why
mart [117]

If a controlled input can transfer (alter) the control system's initial states to some other desired states in a finite amount of time, the control system is said to be controllable.

Using Kalman's test, we can determine whether a control system is controllable. The evolution model for the state variables (time-varying unknowns) and the observation model, which connects the observations to the state variables, make up the state space representation of a dynamical system. The capacity to move a system about in its full configuration space using just specific permitted actions is generally referred to as controllability. The precise definition changes slightly depending on the model type or framework used.

Learn more about control here-

brainly.com/question/28540307

#SPJ4

5 0
1 year ago
C++ question <br> Thank you
Salsk061 [2.6K]
You're welcome lol! !!!!!!!!!!!!!!

:):):):)
5 0
2 years ago
Other questions:
  • Consider a plane composite wall that is composed of two materials of thermal conductivities kA = 0.1 W/m*K and kB = 0.04 W/m*K a
    13·1 answer
  • Write down a transfer function of a stable system for which pure proportional feedback could drive the system unstable.
    11·1 answer
  • Create a C language program that can be used to construct any arbitrary Deterministic Finite Automaton corresponding to the FDA
    6·1 answer
  • Which task best fits the role of a planning engineer?
    13·1 answer
  • 10. When an adhesion bond is made by melting a filler metal and allowing it to spread into the pores of the
    7·1 answer
  • In order to break even, your minimum selling price must be __________ your variable costs.
    10·1 answer
  • In the given circuit, V(t)=12cos(2000t+45)V, R1=R2=2Ω, L1=L2=L3=3mH and C1=250μF. You are required to find the Thevenin equivale
    7·1 answer
  • A heat engine operates between 2 reservoirs at TH and 18oC. The heat engine receives 17,000 kJ/h from the high temperature reser
    10·1 answer
  • Giving away free brainliest your welcome​
    15·2 answers
  • Cynthia is producing a sculpture using material introduced in the Bronze Age. What two metals is she mixing?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!