summaryrefslogtreecommitdiff
path: root/1472/CH16/EX16.2
diff options
context:
space:
mode:
Diffstat (limited to '1472/CH16/EX16.2')
-rwxr-xr-x1472/CH16/EX16.2/16_2.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/1472/CH16/EX16.2/16_2.sce b/1472/CH16/EX16.2/16_2.sce
new file mode 100755
index 000000000..b9336080e
--- /dev/null
+++ b/1472/CH16/EX16.2/16_2.sce
@@ -0,0 +1,17 @@
+clc
+//initialization of varaibles
+e=0.75
+Ta=870 //R
+Tc=1075//R
+cp=0.24
+Td=550 //R
+//calculations
+Tadash=e*(Tc-Ta) +Ta
+Tcdash=Tc+Ta-Tadash
+Q1=cp*(Tb-Tadash)
+Q2=cp*(Tcdash-Td)
+Wnet=Q1-Q2
+eta=Wnet/Q1
+//results
+printf("Net work done = %d B/lb",Wnet)
+printf("\n efficiency = %.2f ",eta)