summaryrefslogtreecommitdiff
path: root/2705/CH1/EX1.8/Ex1_8.sce
blob: 6febbea570beb243ed11410384b857a238976bd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
clear;
clc;
disp('Example 1.8');

 

// Given values
m = 4; //  mass of the liquid, [kg]
t1 = 15; //  initial temperature, [C]
t2 = 100; //  final temperature, [C]
Q = 714; //  [kJ],required heat to accomplish this change

//  solution
//  using heat equation
//  Q=m*c*(t2-t1)

//  calculation of c
c=Q/(m*(t2-t1)); //  heat capacity, [kJ/kg K] 

mprintf('\n The specific heat capacity of the liquid is  c =  %f  kJ/kg K\n',c);

//End