Answer:
std::string x[n];
int mode1count = 0; // msft
int mode2count = 0; // appl
int mode3count = 0; // csco
int mode4count = 0; // imb
int i;
for(i = 0; i < n; ++i) // Set the array of strings
x[i] = modeList[i];
for(i = 0; i < n; ++i)
{
if(x[i] == "msft")
++mode1count;
else if(x[i] == "appl")
++mode2count;
else if(x[i] == "csco")
++mode3count;
else if(x[i] == "imb")
++mode4count;
}
Explanation:
It is important to ensure that there is adequate space and necessary punctuation when developing codes and programming to avoid getting error messages when running the codes. In this problem, the codes required are shown in the answer section. The codes are properly writing and arranged.
Answer:
Hầu hết các công việc quan trọng sử dụng nguyên lý thủy lực. Trợ lực lái, giảm xóc, kính chắn gió và phanh là những ứng dụng phổ biến của hệ thống thủy lực trên xe. Thang máy hai trụ và thang nâng bốn trụ được sử dụng trong ngành công nghiệp ô tô để nâng các phương tiện phục vụ công tác bảo dưỡng và kiểm tra.
Explanation:
Answer:
peak-hour volume = 1890 veh/h
Explanation:
<u>Determine the peak-hour Volume </u>
Applying the equation below
Vp = v / ( PHF * N * Fg * Fdp ) -------------- ( 1 )
where :
Vp = 1250
v ( peak - hour volume ) = ?
PHF ( peak hour factor ) = 0.84
N = 2 lanes per direction
Fg ( grade adjustment for rolling terrain ) = 0.99 ≈ 1
Fdp = 0.90
<u>Back to equation 1 </u>
v = Vp ( PHF * N * Fg * Fdp )
= 1250 ( 0.84 * 2 * 1 * 0.90 )
= 1890 veh/h
Answer:
For a Singular matrix, the determinant must be equivalent to 0.
Explanation:
A matrix is a rectangular array in which elements are arranged in rows and columns.
Each square matrix has a determinant. The determinant is a numerical idea that has a fundamental function in finding the arrangement just as investigation of direct conditions. For a Singular matrix, the determinant must be equivalent to 0.
Answer:
a. Wa = 73.14 Btu/lbm
b. Sgen = 0.05042 Btu/lbm °R
c. Isentropic efficiency is 70.76%
d. Minimum specific work for compressor W = -146.2698 Btu/lbm [It is negative because work is being done on the compressor]
Explanation:
Complete question is as follows;
Air initially at 120 psia and 500oF is expanded by an adiabatic turbine to 15 psia and 200oF. Assuming air can be treated as an ideal gas and has variable specific heat.
a) Determine the specific work output of the actual turbine (Btu/lbm).
b) Determine the amount of specific entropy generation during the irreversible process (Btu/lbm R).
c) Determine the isentropic efficiency of this turbine (%).
d) Suppose the turbine now operates as an ideal compressor (reversible and adiabatic) where the initial pressure is 15 psia, the initial temperature is 200 oF, and the ideal exit state is 120 psia. What is the minimum specific work the compressor will be required to operate (Btu/lbm)?
solution;
Please check attachment for complete solution and step by step explanation