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
vlada-n [284]
3 years ago
14

Assume a program contains a void function named calcNewPrice(). The function receives two double variables named oldPrice and ne

wPrice. The function multiplies the contents of the oldPrice variable by 1.1, then stores the result in the newPrice variable. Which of the following can be used to call the calcNewPrice() function?(A) calcNewPrice(double oldPrice, double newPrice);(B) calcNewPrice(&oldPrice, newPrice);(C) calcNewPrice(oldPrice, &newPrice);(D) calcNewPrice(oldPrice, newPrice);
Engineering
1 answer:
liberstina [14]3 years ago
4 0

Answer:

(C) calcNewPrice(oldPrice, &newPrice);

Explanation:

It's a void function so there's no return value, however they wanted to change a value. The only way to do that is to pass in an address of the variable into the function, and deference it and store the new data there.

You might be interested in
Explain your own understanding about the relevant connections between the four subsystems of Earth through the use of a creative
Alex17521 [72]

Answer:

Because these subsystems interact with each other and the biosphere, they work together to influence the climate and make an affect on life all over the Earth.

8 0
3 years ago
The 5-kg collar has a velocity of 5 m>s to the right when it is at A. It then travels along the smooth guide. Determine its s
Gnoma [55]

Answer:

The speed at point B is 5.33 m/s

The normal force at point B is 694 N

Explanation:

The length of the spring when the collar is in point A is equal to:

lA=\sqrt{0.2^{2}+0.2^{2}  }=0.2\sqrt{2}m

The length in point B is:

lB=0.2+0.2=0.4 m

The equation of conservation of energy is:

(Tc+Ts+Vc+Vs)_{A}=(Tc+Ts+Vc+Vs)_{B} (eq. 1)

Where in point A: Tc = 1/2 mcVA^2, Ts=0, Vc=mcghA, Vs=1/2k(lA-lul)^2

in point B: Ts=0, Vc=0, Tc = 1/2 mcVB^2, Vs=1/2k(lB-lul)^2

Replacing in eq. 1:

\frac{1}{2}m_{c}v_{A}^{2}+0+m_{c}gh_{A}+      \frac{1}{2}k(l_{A}-l_{ul})  ^{2}=\frac{1}{2}m_{c}v_{B}^{2}+0+0+\frac{1}{2}k(l_{B}-l_{ul})  ^{2}

Replacing values and clearing vB:

vB = 5.33 m/s

The balance forces acting in point B is:

Fc-NB-Fs=0

\frac{m_{C}v_{B}^{2}   }{R}-N_{B}-k(l_{B}-l_{ul})=0

Replacing values and clearing NB:

NB = 694 N

6 0
4 years ago
Read 2 more answers
A steam power plant operates on a simple ideal Rankine cycle between the pressure limits of 3000 kPa and 25 kPa. The temperature
mafiozo [28]

Answer:

a)31%

b)34MW

Explanation:

A rankine cycle is a generation cycle using water as a working fluid, when heat enters the boiler the water undergoes a series of changes in state and energy until generating power through the turbine.

This cycle is composed of four main components, the boiler, the pump, the turbine and the condenser as shown in the attached image

To solve any problem regarding the rankine cycle, enthalpies in all states must be calculated using the thermodynamic tables and taking into account the following.

• The pressure of state 1 and 4 are equal

• The pressure of state 2 and 3 are equal

• State 1 is superheated steam

• State 2 is in saturation state

• State 3 is saturated liquid at the lowest pressure

• State 4 is equal to state 3 because the work of the pump is negligible.

Once all enthalpies are found, the following equations are used using the first law of thermodynamics

Wout = m (h1-h2)

Qin = m (h1-h4)

Win = m (h4-h3)

Qout = m (h2-h1)

The efficiency is calculated as the power obtained on the heat that enters

Efficiency = Wout / Qin

Efficiency = (h1-h2) / (h1-h4)

For this problem, we will first find the enthalpies in all states

h1=3231kJ/Kg

h2=2310kJ/Kg

h3=h4=272kJ/Kg

A) using the eficiency ecuation

Efficiency = (h1-h2) / (h1-h4)

Efficiency =(3231-2310)/(3231-272)=0.31=<u>31%</u>

b)using ecuation for Wout

Wout = m (h1-h2)

Wout=37(3231-2310)=34077KW=<u>34.077MW</u>

6 0
4 years ago
a centrifugal pump delivers water at the rate of 50kg/is . the inlet and outlet pressure are 2 bar and 6.2 bar respectively. the
Monica [59]

Answer:

21.6 kw

Explanation:

Given data:

m = 50 kg/s

Inlet pressure (p1) = 2 bar

outlet pressure(p2) = 6.2 bar

suction ( h1 ) = -2.2 m

delivery ( h2 ) = 8.5 m

d1 = 200 mm = 0.2 m

d2 = 100 mm = 0.1 m

Vs of water = 0.001 m^3/kg

next we have to determine the Q value

Q = V*A

Q = 0.001 * 50 = 0.05 m^3/s

next we have to calculate the various V's

V1 = Q/A1 = \frac{0.05*4}{\pi *0.2^2}  = 1.59 m/s

V2 = Q/A2 = \frac{0.05*4}{\pi *0.1^2} = 6.37 m/s

Determine the capacity of the electric motor

attached below is the detailed solution

7 0
3 years ago
Supercharging is the process of (a) Supplying the intake of an engine with air at a density greater than the density of the surr
iVinArrow [24]

Answer:

a)supplying the  intake of an engine  with air at a  density greater  than the density  of the surrounding  atmosphere

Explanation:

Supercharging  is the process of  supplying the  intake of an engine  with air at a  density greater  than the density  of the surrounding  atmosphere.

By doing this , it increases  the power out put  and increases the  brake thermal  efficiency of the  engine.It also  increases the  volumetric efficiency of the  engine.

So the our  option a is  right.

4 0
3 years ago
Other questions:
  • How would you describe the stability of the atmosphere if you noted a dry adiabatic rate of 10ºC/1000 meters, a wet adiabatic ra
    10·2 answers
  • Write a SELECT statement that returns the same result set as this SELECT statement. Substitute a subquery in a WHERE clause for
    10·1 answer
  • Consider the problem of oxygen transfer from the interior lung cavity, across the lung tissue, to the network of blood vessels o
    9·1 answer
  • Calculate the maximum load that a 7075 series aluminum alloy bar (with a T6 temper heat treatment) can support without permanent
    7·1 answer
  • A team member who has been a good worker for many years has recently been doing poor work. You suspect that he may be tired of h
    6·1 answer
  • 6. What living area room must be adjacent to the kitchen?
    14·1 answer
  • True or False? Early engineers used a trial-and­error approach, rather than mathematical and scientific principles when solving
    14·1 answer
  • Users say that the game is interesting to look at but the music gets annoying
    9·1 answer
  • Two technicians are discussing how to loosen bleeder valves. Technician A says that a shock is usually necessary to break the ta
    8·1 answer
  • Is Tesla French, American, German, or Russian?
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!