summaryrefslogtreecommitdiff
path: root/2507/CH4/EX4.2
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2507/CH4/EX4.2
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2507/CH4/EX4.2')
-rwxr-xr-x2507/CH4/EX4.2/Ex4_2.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/2507/CH4/EX4.2/Ex4_2.sce b/2507/CH4/EX4.2/Ex4_2.sce
new file mode 100755
index 000000000..efc2d84f7
--- /dev/null
+++ b/2507/CH4/EX4.2/Ex4_2.sce
@@ -0,0 +1,23 @@
+clc
+clear
+printf("Example 4.2 | Page number 94 \n\n");
+//Part (a) Find change in energy of the system
+//Part (b) Find the magnitude and direction of work during B
+//Given Data
+Q_a = -50 //KJ //heat transferred from the system along path A
+W_a = -65 //KJ //work done along path A
+Q_b = 0 //KJ //heat transferred from the system along path B
+//W_b work done along path B
+
+//Solution
+
+//Part(a)
+printf("Part (a)\n");
+delE_a = Q_a - W_a //KJ //Change in energy along path A
+printf("Change in energy of the system = %.2f KJ\n\n",delE_a);
+
+//Part(b)
+printf("Part (b)\n");
+delE_b = -1*delE_a //KJ //Change in energy along path B
+W_b = delE_b - Q_b //KJ //work done along path B
+printf("Magnitude and direction of work done during B, W_b = %.2f KJ",W_b)