summaryrefslogtreecommitdiff
path: root/3850/CH25/EX25.2/Ex25_2.sce
blob: d04ca5118b5f1f857beef151c8eddc9e69c3589b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

//To calculate the heat supplied to the block

//Example 25.2

clear;

clc;

m=60;//mass of a copper block in grams

s=0.09;//specific heat capacity of copper in (cal/g-degree celsius)

t=20;//temperature increased by degree celcius

Q=m*s*t;//formula for finding the heat supplied to the block

printf("Heat=%f cal",Q);