summaryrefslogtreecommitdiff
path: root/1922/CH4/EX4.1/4_1.sce
blob: b64f274c5a9d353099d6c80fc29ac200f41bf0ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clc
clear
//Initialization of variables
T=500 //K
Qr=5*10^6 //kJ
T2=600 //K
//calculations
dSS=Qr/T
dSS2=-Qr/T2
Ds=dSS+dSS2
//results
printf("Entropy change of the system = %d kJ/K",dSS)
printf("\n Entropy change of the surroundings = %d kJ/K",dSS2)
printf("\n Entropy change if the universe = %d kJ/K",Ds)