summaryrefslogtreecommitdiff
path: root/3878/CH1/EX1.2/Ex1_2.sce
blob: 1eddb009a3b9b0b9c3d3809779abf3aa3e464ffa (plain)
1
2
3
4
5
6
7
8
9
clear
// Variable Declaration
T_f=80// Final Temperature in °C
T_i=0// Initial Temperature in °C
h_f=334.91// The specific enthalpy of water in kJ/kg

// Calculation
C=h_f/(T_f-T_i)// The average specific heat capacity in kJ/(kg K)
printf("\n The average specific heat capacity is %0.3f  kJ/(kg K)", C)