summaryrefslogtreecommitdiff
path: root/1427/CH18/EX18.10/18_10.sce
diff options
context:
space:
mode:
Diffstat (limited to '1427/CH18/EX18.10/18_10.sce')
-rw-r--r--1427/CH18/EX18.10/18_10.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/1427/CH18/EX18.10/18_10.sce b/1427/CH18/EX18.10/18_10.sce
new file mode 100644
index 000000000..63b84440e
--- /dev/null
+++ b/1427/CH18/EX18.10/18_10.sce
@@ -0,0 +1,9 @@
+//ques-18.10
+//Calculating work done and heat rejected and efficiency
+clc
+T1=0; T2=100;//temperature (in degree celsius)
+q2=840;//energy absorbed (in J)
+q1=q2*((T1+273)/(T2+273));//heat rejected (in J)
+W=q2-q1;//work done (in J)
+n=(T2-T1)/(T2+273);//efficiency
+printf("The work done is %.1f J, heat rejected is %.1f J and efficiency is %.3f.",W,q1,n);