Answer:
#include <iostream>
using namespace std;
void PrintPopcornTime(int bagOunces) {
if(bagOunces < 3){
cout << "Too small";
cout << endl;
}
else if(bagOunces > 10){
cout << "Too large";
cout << endl;
}
else{
cout << (6 * bagOunces) << " seconds" << endl;
}
}
int main() {
PrintPopcornTime(7);
return 0;
}
Explanation:
Using C++ to write the program. In line 1 we define the header "#include <iostream>" that defines the standard input/output stream objects. In line 2 "using namespace std" gives me the ability to use classes or functions, From lines 5 to 17 we define the function "PrintPopcornTime(), with int parameter bagOunces" Line 19 we can then call the function using 7 as the argument "PrintPopcornTime(7);" to get the expected output.
Answer:
0.245 m^3/s
Explanation:
Flow rate through pipe a is 0.4 m3/s Parallel pipes have a diameter D = 30 cm => r = 15 cm = 0.15 m Length of Pipe a = 1000m Length of Pipe b = 2650m Temperature = 15 degrees Va = V / A = (0.4m3/s) / (3.14 (0.15m)^2) = 5.66 m/s h = (f(LV^2)) / D2g (fa(LaVa^2)) / Da2g = (fb(LbVb^2)) / Da2g and Da = Db; fa = fb LaVa^2 = LbVb^2 => La/Lb = Vb^2/Va^2 Vd^2 = Va^2(La/Lb) => Vb = Va(La/Lb)^(1/2) Vb = 5.66 (1000/2650)^(1/2) => 5.66 x 0.6143 = 3.4769 m/s Vb = 3.4769 m/s V = AVb = 3.14(0.15)^2 x 3.4769 m/s = 0.245 m^3/s
Answer:
a) Tբ = 151.8°C
b) ΔV = - 0.194 m³
c) The T-V diagram is sketched in the image attached.
Explanation:
Using steam tables,
At the given pressure of 0.5 MPa, the saturation temperature is the final temperature.
Right from the steam tables (A-5) with a little interpolation, Tբ = 151.793°C
b) The volume change
Using data from A-5 and A-6 of the steam tables,
The volume change will be calculated from the mass (0.58 kg), the initial specific volume (αᵢ) and the final specific volume
(αբ) (which is calculated from the final quality and the consituents of the specific volumes).
ΔV = m(αբ - αᵢ)
αբ = αₗ + q(αₗᵥ) = αₗ + q (αᵥ - αₗ)
q = 0.5, αₗ = 0.00109 m³/kg, αᵥ = 0.3748 m³/kg
αբ = 0.00109 + 0.5(0.3748 - 0.00109)
αբ = 0.187945 m³/kg
αᵢ = 0.5226 m³/kg
ΔV = 0.58 (0.187945 - 0.5226) = - 0.194 m³
c) The T-V diagram is sketched in the image attached
Answer: The exit temperature of the gas in deg C is
.
Explanation:
The given data is as follows.
= 1000 J/kg K, R = 500 J/kg K = 0.5 kJ/kg K (as 1 kJ = 1000 J)
= 100 kPa, 

We know that for an ideal gas the mass flow rate will be calculated as follows.

or, m = 
=
= 10 kg/s
Now, according to the steady flow energy equation:




= 5 K
= 5 K + 300 K
= 305 K
= (305 K - 273 K)
= 
Therefore, we can conclude that the exit temperature of the gas in deg C is
.