blob: 3af524aa717406d574c1e802d5b304808f45485e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
clc
clear
printf("Example 8.16 | Page number 234 \n\n");
//What are available and unavailable energies of Q1
//Given data
T1 = 500 //K
T0 = 300 //K
T2 = 350 //K
W = 250 //kJ
Q1 = 1000 //kJ
printf("Available energy = %.1f kJ\n",(1-(T0/T1))*Q1);
printf("Unavailable energy = %.1f kJ\n",Q1 - (1-(T0/T1))*Q1);
|