Answer:
A)cout<<setw(9)<<fixed<<setprecision(2)<<34.789;
B)cout<<setw(5)<<fixed<<setprecision(3)<<7.0;
C)cout<<fixed<<5.789E12;
D)cout<<left<<setw(7)<<67;
Explanation:
Stream Manipulators are functions specifically designed to be used in conjunction with the insertion (<<) and extraction (>>) operators on stream objects in C++ programming while the 'cout' statement is used to display the output of a C++to the standard output device.
setw: used to specify the minimum number of character positions on the output field
setprecision: Sets the decimal precision to be used to format floating-point values on output operations.
fixed: is used to set the floatfield format flag for the specified str stream.
left: adjust output to the left.
A) To display the number 34.789 in a field of eight spaces with two decimal places of precision. cout<<setw(9)<<fixed<<setprecision(2)<<34.789;
B) To display the number 7.0 in a field of six spaces with three decimal places of precision. cout<<setw(5)<<fixed<<setprecision(3)<<7.0;
C) To print out the number 5.789e+12 in fixed-point notation. cout<<fixed<<5.789E12;
(D) To display the number 67 left-justified in a field of six spaces. cout<<left<<setw(7)<<67;
The contractor definitely breached the contract
Answer:
(b)False
Explanation:
defined as
=
Where x is the distance from centroidal x-axis
y is the distance from centroidal y-axis
dA is the elemental area.
The product of x and y can be positive or negative ,so the value of
can be positive as well as negative .
So from the above expressions we can say that the product of
is different from
.
Answer:the mass of water vapor is=d. 2.04 kg
Explanation:
The humidity ratio by mass is given as
x = mw / ma (1)
where
mw = mass of water vapor
ma = mass of dry air
And also humidity ratio by pressure by Ideal Gas Law is given as
x = 0.62198 pw / (pa - pw) (2)
where
pw = partial pressure of water vapor in moist air
pa = atmospheric pressure of moist air
Equating both equation we have that
Humidity ratio = 0.62198 pw / (pa - pw)= mw / ma (3)
From the from the water table at 25°C,
water vapor partial pressure = 23.8 torr
1 atm =760 torr.
1 atm = 101.325 kPa,
So, 760 torr =101.325 kPa,
Therefore 23.8 torr =3.173kPa
Humidity ratio = 0.62198 pw / (pa - pw)= mw / ma
0.62198 x 3.173 / (100-3.173)= mw / 100
1.9736 /96.827=mw/100
0.0204=mw/100
mw=2.04kg