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:
The steady-state temperature difference is 2.42 K
Explanation:
Rate of heat transfer = kA∆T/t
Rate of heat transfer = 6 W
k is the heat transfer coefficient = 152 W/m.K
A is the area of the square silicon = width^2 = (7/1000)^2 = 4.9×10^-5 m^2
t is the thickness of the silicon = 3 mm = 3/1000 = 0.003 m
6 = 152×4.9×10^-5×∆T/0.003
∆T = 6×0.003/152×4.9×10^-5 = 2.42 K
Answer:
as slated in your solution, if delay time is 2.30 mins, hence 9 vehicle will be on queue as the improved service commenced.
Explanation:
4 vehicle per min, in 2 mins of the delay time 8 vehicles while in 0.3 min average of 1 vehicle join the queue. making 9 vehicle maximum