summaryrefslogtreecommitdiff
path: root/1448/CH2/EX2.2.e/E2_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '1448/CH2/EX2.2.e/E2_2.sce')
-rwxr-xr-x1448/CH2/EX2.2.e/E2_2.sce8
1 files changed, 8 insertions, 0 deletions
diff --git a/1448/CH2/EX2.2.e/E2_2.sce b/1448/CH2/EX2.2.e/E2_2.sce
new file mode 100755
index 000000000..389bc1cf9
--- /dev/null
+++ b/1448/CH2/EX2.2.e/E2_2.sce
@@ -0,0 +1,8 @@
+clc
+//Initialization of variables
+work=-622 //kJ
+heat=-82 //kJ
+//Calculations
+U=work+heat
+//results
+printf('The persons internal energy falls by %d kJ',U)