blob: ea49a5db05fbb265164e5ad6c48d9158492ebcf6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
clc
//initialisation of variables
clear
T= 25 //C
T1= 0 //C
h= 79.8 //cal g^-1
j= 4.18*10^7 //ergs
//CALCULATIONS
Wc= (T-T1)*h/(273+T1)
W= (T-T1)*h*j/(273+T1)
//RESULTS
printf ('Work required = %.1f cal',Wc)
printf ('\n Work required = %.2e ergs',W)
|