What do y’all do when ya girl go eat lunch and eat it and eat
Answer:
(a) 2.39 MPa (b) 3.03 kJ (c) 3.035 kJ
Explanation:
Solution
Recall that:
A 10 gr of air is compressed isentropically
The initial air is at = 27 °C, 110 kPa
After compression air is at = a450 °C
For air, R=287 J/kg.K
cv = 716.5 J/kg.K
y = 1.4
Now,
(a) W efind the pressure on [MPa]
Thus,
T₂/T₁ = (p₂/p₁)^r-1/r
=(450 + 273)/27 + 273) =
=(p₂/110) ^0.4/1.4
p₂ becomes 2390.3 kPa
So, p₂ = 2.39 MPa
(b) For the increase in total internal energy, is given below:
ΔU = mCv (T₂ - T₁)
=(10/100) (716.5) (450 -27)
ΔU =3030 J
ΔU =3.03 kJ
(c) The next step is to find the total work needed in kJ
ΔW = mR ( (T₂ - T₁) / k- 1
(10/100) (287) (450 -27)/1.4 -1
ΔW = 3035 J
Hence, the total work required is = 3.035 kJ
Full Question
1. Correct the following code and
2. Convert the do while loop the following code to a while loop
declare integer product
declare integer number
product = 0
do while product < 100
display ""Type your number""
input number
product = number * 10
loop
display product
End While
Answer:
1. Code Correction
The errors in the code segment are:
a. The use of do while on line 4
You either use do or while product < 100
b. The use of double "" as open and end quotes for the string literal on line 5
c. The use of "loop" statement on line 7
The correction of the code segment is as follows:
declare integer product
declare integer number
product = 0
while product < 100
display "Type your number"
input number
product = number * 10
display product
End While
2. The same code segment using a do-while statement
declare integer product
declare integer number
product = 0
Do
display "Type your number"
input number
product = number * 10
display product
while product < 100
The best answer would be
D. Int calculateCost(int count);