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
A 1-mm-diameter methanol droplet takes 1 min for complete evaporation at atmospheric condition. What will be the time taken for
Svet_ta [14]

Answer:

Time taken by the 1\mu m diameter droplet is 60 ns

Solution:

As per the question:

Diameter of the droplet, d = 1 mm = 0.001 m

Radius of the droplet, R = 0.0005 m

Time taken for complete evaporation, t = 1 min = 60 s

Diameter of the smaller droplet, d' = 1\times 10^{- 6} m

Diameter of the smaller droplet, R' = 0.5\times 10^{- 6} m

Now,

Volume of the droplet, V = \frac{4}{3}\pi R^{3}

Volume of the smaller droplet, V' = \frac{4}{3}\pi R'^{3}

Volume of the droplet ∝ Time taken for complete evaporation

Thus

\frac{V}{V'} = \frac{t}{t'}

where

t' = taken taken by smaller droplet

\frac{\frac{4}{3}\pi R^{3}}{\frac{4}{3}\pi R'^{3}} = \frac{60}{t'}

\frac{\frac{4}{3}\pi 0.0005^{3}}{\frac{4}{3}\pi (0.5\times 10^{- 6})^{3}} = \frac{60}{t'}

t' = 60\times 10^{- 9} s = 60 ns

5 0
3 years ago
An object whose mass is 251 kg is located at an elevation of 24 m above the surface of the earth. For g-9.78 ms, determine the g
Harlamova29_29 [7]

Answer:

Gravitational Potential =58.914 KJ

Explanation:

We know that

Gravitational Potential Energy = mass\times g\times Height

Given mass = 251 kg

Height= 24 m

g is acceleration due to gravity = 9.78m/s^{2}

Applying values in the equation we get

Gravitational Potential Energy=251X9.78X24 Joules

Gravitational Potential Energy=58914.72 Joules

Gravitational Potential Energy =\frac{58914.72}{1000}KJ= 58.914KJ

4 0
3 years ago
A series of concrete pillars have been built on the border between Kuwait and Iraq. They are there to __________ the border.
Gala2k [10]

A series of concrete pillars have been built on the border between Kuwait and Iraq. They are there to demarcate the border.

<h3>What is a border?</h3>

A border is a geographical boundary that separate<em> countries, states, provinces, counties, cities, and towns.</em>

A series of concrete pillars have been built on the border between Kuwait and Iraq. They are there to demarcate the border.

Find out more on border at: brainly.com/question/811755

5 0
2 years ago
In a lab, scientists grew several generations of offspring of a plant using the method shown. What conclusion can you make about
exis [7]
Answer: c) they have low genetic variability among them.


When a plant is grown for several generations of offspring of a plant, then there are some common things which are to be noted which are found similar in the offspring and in the parent of the offspring. The flowers and fruits and the time or season they come in are absolutely the same.
6 0
10 months ago
The gas expanding in the combustion space of a reciprocating engine has an initial pressure of 5 MPa and an initial temperature
Anit [1.1K]

Answer:

a). Work transfer = 527.2 kJ

b). Heat Transfer = 197.7 kJ

Explanation:

Given:

P_{1} = 5 Mpa

T_{1} = 1623°C

                       = 1896 K

V_{1} = 0.05 m^{3}

Also given \frac{V_{2}}{V_{1}} = 20

Therefore, V_{2} = 1  m^{3}

R = 0.27 kJ / kg-K

C_{V} = 0.8 kJ / kg-K

Also given : P_{1}V_{1}^{1.25}=C

   Therefore, P_{1}V_{1}^{1.25} = P_{2}V_{2}^{1.25}

                     5\times 0.05^{1.25}=P_{2}\times 1^{1.25}

                     P_{2} = 0.1182 MPa

a). Work transfer, δW = \frac{P_{1}V_{1}-P_{2}V_{2}}{n-1}

                                  \left [\frac{5\times 0.05-0.1182\times 1}{1.25-1}  \right ]\times 10^{6}

                              = 527200 J

                             = 527.200 kJ

b). From 1st law of thermodynamics,

Heat transfer, δQ = ΔU+δW

   = \frac{mR(T_{2}-T_{1})}{\gamma -1}+ \frac{P_{1}V_{1}-P_{2}V_{2}}{n-1}

  =\left [ \frac{\gamma -n}{\gamma -1} \right ]\times \delta W

  =\left [ \frac{1.4 -1.25}{1.4 -1} \right ]\times 527.200

  = 197.7 kJ

6 0
2 years ago
Other questions:
  • Refrigerant-134a enters a diffuser steadily as saturated vapor at 600 kPa with a velocity of 160 m/s, and it leaves at 700 kPa a
    10·2 answers
  • n open feedwater heater operates at steady state with liquid water entering inlet 1 at 10 bar, 50°C. A separate stream of steam
    8·1 answer
  • Some chemical reaction is being run inside a sealed gas cylinder. During the reaction, a gaseous product is formed. The pressure
    14·1 answer
  • Select the correct answer.
    5·1 answer
  • Which of the following is not necessary a reason to machine a brake drum?
    8·1 answer
  • List a minimum of four reasons why you might be rejected for a job offer.
    10·1 answer
  • How do you explain the application of regulations in locations containing baths, showers and electric floor heating, including t
    10·1 answer
  • What are the best collages for architectural learning?
    7·1 answer
  • What is the tolerance of number 4?
    12·1 answer
  • How could angela use the puzzle to model semiconductors? as an n-type semiconductor with the pegs representing electrons and the
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!