summaryrefslogtreecommitdiff
path: root/3648/CH12/EX12.6/Ex12_6.sce
blob: 1067a8af50067adcd4fac0a7bdc47e58813d4cb6 (plain)
1
2
3
4
5
6
7
8
9
10
//Example 12_6
clc();
clear;
//To findout how much electricity is needed
Tc=278         //Units in K
Th=293       //Units in K
COP=Tc/(Th-Tc)          //Units in ratio
Qc=210000          //Units in J
W=Qc/COP                   //Units in J
printf("The amount of Electricity is required is Delta W=%d J",W)