blob: e1c29cfc8e3cca075e3e1857529a2cdd52baed6b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
clc
//initialisation of variables
T2w= 100 //F
T1w= 75 //F
cw= 1 //Btu/lb F
T2i= 100 //F
T1i= 500 //F
ci= 0.12 //Btu/lb F
mi= 1
//CALCULATIONS
Mw= -mi*ci*(T2i-T1i)/(cw*(T2w-T1w))
//RESULTS
printf ('Pounds of water needed per pound of iron= %.2f lb water/lb iron',Mw)
|