summaryrefslogtreecommitdiff
path: root/2507/CH8/EX8.16/Ex8_16.sce
diff options
context:
space:
mode:
Diffstat (limited to '2507/CH8/EX8.16/Ex8_16.sce')
-rwxr-xr-x2507/CH8/EX8.16/Ex8_16.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/2507/CH8/EX8.16/Ex8_16.sce b/2507/CH8/EX8.16/Ex8_16.sce
new file mode 100755
index 000000000..3af524aa7
--- /dev/null
+++ b/2507/CH8/EX8.16/Ex8_16.sce
@@ -0,0 +1,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);