summaryrefslogtreecommitdiff
path: root/1388/CH4/EX4.2/4_2.sce
blob: 3de35cd3176f93baff1ff8709e4ee59e969502fe (plain)
1
2
3
4
5
6
7
8
9
10
11
clc
//initialisation of variables
T= 20 //C
T1= -10 //C
q= 1000 //cal
//CALCULATIONS
e= (273+T1)/(T-T1)
w= (T-T1)*q/(273+T1)
//RESULTS
printf (' maximum efficiency = %.1f ',e)
printf (' \n minimum work = %.f cal',w)