answer.
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
zysi [14]
2 years ago
9

6.8.1: Function pass by pointer: Transforming coordinates. Define a function CoordTransform() that transforms its first two inpu

t parameters xVal and yVal into two output parameters xValNew and yValNew. The function returns void. The transformation is new = (old + 1) * 2. Ex: If xVal = 3 and yVal = 4, then xValNew is 8 and yValNew is 10.
Engineering
1 answer:
Black_prince [1.1K]2 years ago
6 0

Answer:

The code is in the Explanation

Explanation:

#include <iostream>

using namespace std;

int main() {

int xValNew = 0;

int yValNew = 0;

CoordTransform(3, 4, xValNew, yValNew);

cout << "(3, 4) becomes " << "(" << xValNew << ", " << yValNew << ")" << endl;

return 0;}

You might be interested in
Determine the angular acceleration of the uniform disk if (a) the rotational inertia of the disk is ignored and (b) the inertia
lukranit [14]

Answer:

α = 7.848 rad/s^2  ... Without disk inertia

α = 6.278 rad/s^2  .... With disk inertia

Explanation:

Given:-

- The mass of the disk, M = 5 kg

- The right hanging mass, mb = 4 kg

- The left hanging mass, ma = 6 kg

- The radius of the disk, r = 0.25 m

Find:-

Determine the angular acceleration of the uniform disk without and with considering the inertia of disk

Solution:-

- Assuming the inertia of the disk is negligible. The two masses ( A & B )  are hung over the disk in a pulley system. The disk is supported by a fixed support with hinge at the center of the disk.

- We will make a Free body diagram for each end of the rope/string ties to the masses A and B.

- The tension in the left and right string is considered to be ( T ).

- Apply newton's second law of motion for mass A and mass B.

                      ma*g - T = ma*a

                      T - mb*g = mb*a

Where,

* The tangential linear acceleration ( a ) with which the system of two masses assumed to be particles move with combined constant acceleration.

- g: The gravitational acceleration constant = 9.81 m/s^2

- Sum the two equations for both masses A and B:

                      g* ( ma - mb ) = ( ma + mb )*a

                      a =  g* ( ma - mb ) / ( ma + mb )

                      a = 9.81* ( 6 - 4 ) / ( 6 + 4 ) = 9.81 * ( 2 / 10 )

                      a = 1.962 m/s^2  

- The rope/string moves with linear acceleration of ( a ) which rotates the disk counter-clockwise in the direction of massive object A.

- The linear acceleration always acts tangent to the disk at a distance radius ( r ).

- For no slip conditions, the linear acceleration can be equated to tangential acceleration ( at ). The correlation between linear-rotational kinematics is given below :

                     a = at = 1.962 m/s^2

                     at = r*α      

Where,

           α: The angular acceleration of the object ( disk )

                    α = at / r

                    α = 1.962 / 0.25

                    α = 7.848 rad/s^2                                

- Take moments about the pivot O of the disk. Apply rotational dynamics conditions:

             

                Sum of moments ∑M = Iα

                 ( Ta - Tb )*r = Iα

- The moment about the pivots are due to masses A and B.

 

               Ta: The force in string due to mass A

               Tb: The force in string due to mass B

                I: The moment of inertia of disk = 0.5*M*r^2

                   ( ma*a - mb*a )*r = 0.5*M*r^2*α

                   α = ( ma*a - mb*a ) / ( 0.5*M*r )

                   α = ( 6*1.962 - 4*1.962 ) / ( 0.5*5*0.25 )

                   α = ( 3.924 ) / ( 0.625 )

                   α = 6.278 rad/s^2

6 0
2 years ago
A steam power plant operates on the reheat Rankine cycle. Steam enters the highpressure turbine at 12.5 MPa and 550°C at a rate
gayaneshka [121]

Answer:

A) condenser pressure = 9.73 kPa,

B) 10242 kw

C) 36.9%

Explanation:

given data

entrance pressure of steam = 12.5 MPa

temperature of steam = 550⁰c

flow rate of steam = 7.7 kg/s

outer pressure = 2 MPa

reheated steam temperature = 450⁰c

isentropic efficiency of turbine( nt ) = 85% = 0.85

isentropic efficiency of pump = 90% = 0.90

From steam tables

at 12.5 MPa and 550⁰c ; h3 = 3476.5 kJ/kg,  S3 = 6.6317 kJ/kgK

also for an Isentropic expansion

S4s = S3 .

therefore when S4s = 6.6317 kJ/kg and P4 = 2 MPa

h4s = 2948.1 kJ/kg

nt = 0.85

nt (0.85) = \frac{h3-h4}{h3-h4s} = \frac{3476.5 - h4}{3476.5 - 2948.1}

making h4 subject of the equation

h4 = 3476.5 - 0.85 (3476.5 - 2948.1)

h4 = 3027.3 kj/kg

at P5 = 2 MPa and T5 = 450⁰c

h5 = 3358.2 kj/kg,  s5 = 7.2815 kj/kgk

at P6 , x6 = 0.95  and s5 = s6

using nt = 0.85 we can calculate for h6 and h6s

from the chart attached below we can see that

p6 = 9.73 kPa, h6 = 2463.3 kj/kg

B) the net power output

solution is attached below

c) thermal efficiency

thermal efficiency = 1 - \frac{qout}{qin} = 1 - ( 2273.7/ 3603.8) = 36.9% ≈ 37%

8 0
2 years ago
mechanically cleaned wastewater bar screen is constructed using 6.5-mm-wide bars spaced 5.0 cm apart center to center; the bars
Annette [7]

Answer: The head loss is 1.5 cm

Explanation:  Equation needed to solve is: h= (vs^2-v^2)/2gC^2

where C is the friction coefficient. To determine the area of flow, we nee to realize that the area available for flow over an area of 1*1 m, Aₓ= 0.87 m², observed from the correlation that for every width of 5.0 cm, we lose 6.5 mm, roughly about 12.9 or 13%.

For a fresh clean screen, the velocity will tend to increase by a factor of  (1/0.87).

The velocities through the screen equals to (0.4/0.87) = 0.46 m/s and (0.8/0.87) = 0.92 m/s.

Apply the above mentioned equation:

h= (0.92^2-0.8^2)/2*0.84^2*9.81 \\\\=0.01499\\=0.015 m = 0.015*100 = 1.50 cm

6 0
2 years ago
Fill in the Blank: The _____ has a very sturdy handle with good leverage for tightening nuts and bolts. It can be used to apply
guapka [62]

Answer:

D Rachet

Explanation:

I tightens it

8 0
2 years ago
A cylinder in space is of uniform temperature and dissipates 100 Watts. The cylinder diameter is 3" and its height is 12". Assum
Gnesinka [82]

Answer:

T= 394.38 K

Explanation:

The solution and complete explanation for the above question and mentioned conditions is given below in the attached document.i hope my explanation will help you in understanding this particular question.

7 0
2 years ago
Other questions:
  • As shown, a load of mass 10 kg is situated on a piston of diameter D1 = 140 mm. The piston rides on a reservoir of oil of depth
    9·1 answer
  • On the reality television show "Survivor," two tribes compete for luxuries such as food and shelter. During such challenges, one
    12·1 answer
  • A binary star system consists of two stars of masses m1m1m_1 and m2m2m_2. The stars, which gravitationally attract each other, r
    9·1 answer
  • 4.9 Given that I 4 amps when Vs 40 volts and Is 4 amps and I 1 amp when Vs 20 volts and Is 0, use superposition and linearity to
    5·1 answer
  • One mole of iron (6 1023 atoms) has a mass of 56 grams, and its density is 7.87 grams per cubic centimeter, so thecenter-to-cent
    15·1 answer
  • A pipe is insulated such that the outer radius of the insulation is less than the critical radius. Now the insulation is taken o
    11·1 answer
  • An inventor claims to have developed an engine that does not use fuel but operates as a power cycle at steady state while receiv
    10·2 answers
  • Two airstreams are mixed steadily and adiabatically. The first stream enters at 35°C and 30 percent relative humidity at a rate
    6·1 answer
  • Which of the following describes boundaries?
    10·1 answer
  • if the mine winch drum diameter is 6 m, calculate how far the cage will drop for each single rotation of the drum
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!