diff options
Diffstat (limited to '32/CH4/EX4.12')
-rwxr-xr-x | 32/CH4/EX4.12/4_12.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/32/CH4/EX4.12/4_12.sce b/32/CH4/EX4.12/4_12.sce new file mode 100755 index 000000000..28fc7988c --- /dev/null +++ b/32/CH4/EX4.12/4_12.sce @@ -0,0 +1,14 @@ +//pathname=get_absolute_file_path('4.12.sce')
+//filename=pathname+filesep()+'4.12-data.sci'
+//exec(filename)
+//Heat drawn from 400 K reservoir(in kJ):
+Q1=5000
+//Work output(in kJ):
+W=840
+//Value of heat from heat engine(in kJ):
+Q2=3*(Q1/2-W)
+//Value of heat to heat engine(in kJ):
+Q3=Q1-W-Q2
+printf("\nRESULTS\n")
+printf("\nQ2 = %d kJ from heat engine",Q2)
+printf("\nQ3 = %d kJ to heat engine",-Q3)
\ No newline at end of file |