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
2.
den301095 [7]
Jae pain seems the most off
4 0
3 years ago
Given: A graphite-moderated nuclear reactor. Heat is generated uniformly in uranium rods of 0.05m diameter at the rate of 7.5 x
sineoko [7]

Answer:

The maximum temperature at the center of the rod is found to be 517.24 °C

Explanation:

Assumptions:

1- Heat transfer is steady.

2- Heat transfer is in one dimension, due to axial symmetry.

3- Heat generation is uniform.

Now, we consider an inner imaginary cylinder of radius R inside the actual uranium rod of radius Ro. So, from steady state conditions, we know that, heat generated within the rod will be equal to the heat conducted at any point of the rod. So, from Fourier's Law, we write:

Heat Conduction Through Rod = Heat Generation

-kAdT/dr = qV

where,

k = thermal conductivity = 29.5 W/m.K

q = heat generation per unit volume = 7.5 x 10^7 W/m³

V = volume of rod = π r² l

A = area of rod = 2π r l

using these values, we get:

dT = - (q/2k)(r dr)

integrating from r = 0, where T(0) = To = Maximum center temperature, to r = Ro, where, T(Ro) = Ts = surface temperature = 120°C.

To -Ts = qr²/4k

To = Ts + qr²/4k

To = 120°C + (7.5 x 10^7 W/m³)(0.025 m)²/(4)(29.5 W/m.°C)

To = 120° C + 397.24° C

<u>To = 517.24° C</u>

5 0
4 years ago
The top 3 most popular male names of 2017 are Oliver, Declan, and Henry according to babynames. Write a program that modifies th
Flura [38]

Answer:

The code is given below in Python with appropriate comments

Explanation:

# convert list to set

male_names = set(['Oliver','Declan','Henry'])

# get remove and add name from user

remove_name = input("Enter remove name: ")

add_name = input("Enter add name: ")

# remove name from set

male_names.remove(remove_name)

# add new name ij set

male_names.add(add_name)

# sort the set

a = sorted(male_names)

# print the set

print(a)

7 0
3 years ago
An engineer is applying dimensional analysis to study the flow of air through this horizontal sudden contraction for the purpose
navik [9.2K]

Answer:

The answer is " \Delta p = f(V1, p, V2, d, D, L)"

Explanation:

Please find the complete question in the attached file.

Its change in temperature in pipes depends on rate heads and loss in pipes owing to pipe flow, contractual loss, etc.

The temperature change thus relies on V1 v2 p d D L.

4 0
3 years ago
An ideal Otto cycle has a compression ratio of 8. At the beginning of the compression process, air is at 95 kPa and 278C, and 75
Inessa [10]

Answer:

(a). The value of temperature at the end of heat addition process            T_{3} = 2042.56 K

(b). The value of pressure at the end of heat addition process                    P_{3} = 1555.46 k pa

(c). The thermal efficiency of an Otto cycle   E_{otto} = 0.4478

(d). The value of mean effective pressure of the cycle P_{m} = 1506.41 \frac{k pa}{kg}

Explanation:

Compression ratio r_{p} = 8

Initial pressure P_{1} = 95 k pa

Initial temperature T_{1} = 278 °c = 551 K

Final pressure P_{2} = 8 × P_{1} = 8 × 95 = 760 k pa

Final temperature T_{2} = T_{1} × r_{p} ^{\frac{\gamma - 1}{\gamma} }

Final temperature T_{2} = 551 × 8 ^{\frac{1.4 - 1}{1.4} }

Final temperature T_{2} = 998 K

Heat transferred at constant volume Q = 750 \frac{KJ}{kg}

(a). We know that Heat transferred at constant volume Q_{S} = m C_{v} ( T_{3} - T_{2}  )

⇒ 1 × 0.718 × ( T_{3} - 998 ) = 750

⇒ T_{3} = 2042.56 K

This is the value of temperature at the end of heat addition process.

Since heat addition is constant volume process. so for that process pressure is directly proportional to the temperature.

⇒ P ∝ T

⇒ \frac{P_{3} }{P_{2} } = \frac{T_{3} }{T_{2} }

⇒ P_{3} = \frac{2042.56}{998} × 760

⇒ P_{3} = 1555.46 k pa

This is the value of pressure at the end of heat addition process.

(b). Heat rejected from the cycle Q_{R} = m C_{v} ( T_{4} - T_{1}  )

For the compression and expansion process,

⇒ \frac{T_{3} }{T_{2} } = \frac{T_{4} }{T_{1} }

⇒ \frac{2042.56}{998} = \frac{T_{4} }{551}

⇒ T_{4} = 1127.7 K

Heat rejected Q_{R} = 1 × 0.718 × ( 1127.7 - 551)

⇒ Q_{R} = 414.07 \frac{KJ}{kg}

Net heat interaction from the cycle Q_{net} = Q_{S} - Q_{R}

Put the values of Q_{S} & Q_{R}  we get,

⇒ Q_{net} = 750 - 414.07

⇒ Q_{net} = 335.93 \frac{KJ}{kg}

We know that for a cyclic process net heat interaction is equal to net work transfer.

⇒ Q_{net} = W_{net}

⇒ W_{net} = 335.93 \frac{KJ}{kg}

This is the net work output from the cycle.

(c). Thermal efficiency of an Otto cycle is given by

E_{otto} = 1- \frac{T_{1} }{T_{2} }

Put the values of T_{1} & T_{2} in the above formula we get,

E_{otto} = 1- \frac{551 }{998 }

⇒ E_{otto} = 0.4478

This is the thermal efficiency of an Otto cycle.

(d). Mean effective pressure P_{m} :-

We know that mean effective pressure of  the Otto cycle is  given by

P_{m} = \frac{W_{net} }{V_{s} } ---------- (1)

where V_{s} is the swept volume.

V_{s} = V_{1}  - V_{2} ---------- ( 2 )

From ideal gas equation P_{1} V_{1} = m × R × T_{1}

Put all the values in above formula we get,

⇒ 95 × V_{1} = 1 × 0.287 × 551

⇒ V_{1} = 0.6 m^{3}

From the same ideal gas equation

P_{2} V_{2} = m × R × T_{2}

⇒ 760 × V_{2} = 1 × 0.287 × 998

⇒ V_{2} = 0.377 m^{3}

Thus swept volume V_{s} = 0.6 - 0.377

⇒ V_{s} = 0.223 m^{3}

Thus from equation 1 the mean effective pressure

⇒ P_{m} = \frac{335.93}{0.223}

⇒ P_{m} = 1506.41 \frac{k pa}{kg}

This is the value of mean effective pressure of the cycle.

4 0
3 years ago
Other questions:
  • A wastewater treatment plant discharges 1.0 m3/s of effluent having an ultimate BOD of 40.0 mg/ L into a stream flowingat 10.0 m
    11·1 answer
  • Air-conditioners consume a significant amount of electrical energy in buildings. Split air conditioner is a unitary system where
    5·1 answer
  • Why do engineers (and others) use the design process?
    13·1 answer
  • A piston–cylinder device contains 0.78 kg of nitrogen gas at 140 kPa and 37°C. The gas is now compressed slowly in a polytropic
    11·1 answer
  • Which of these are factors of 121?
    13·2 answers
  • Các đặc điểm chính của đường dây dài siêu cao áp .
    10·1 answer
  • Which of the following characteristics would not give animals an advantage in the ocean?
    13·1 answer
  • Risks in driving never begins with yourself, but with other drivers who take risks.
    11·1 answer
  • Which of the following sensors is used to provide suspension control module with feedback regarding vehicle cornering​ forces?
    8·1 answer
  • Reason fo I.EE regulations in electrical installations​
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!