From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 680/CH6/EX6.02/6_02.sce | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 680/CH6/EX6.02/6_02.sce (limited to '680/CH6/EX6.02') diff --git a/680/CH6/EX6.02/6_02.sce b/680/CH6/EX6.02/6_02.sce new file mode 100755 index 000000000..f14a32d48 --- /dev/null +++ b/680/CH6/EX6.02/6_02.sce @@ -0,0 +1,17 @@ +//Problem 6.02: + +//initializing the variables: +mc = 20; // in lb +T1 = 100; // in degrees C +T2 = 25; // in Deg C +mw = 6; // in gallons +Cpc = 0.092; // Btu/lb.degF +Cpw = 1.0; // Btu/lb.degF + +//calculation: +T = (mc*Cpc*T1 + mw*8.33*Cpw*T2)/(mc*Cpc + mw*8.33*Cpw) +Tk = T + 273 +dS = mw*8.33*Cpw*log(Tk/298) + +printf("\n\nResult\n\n") +printf("\n the entropy change of the water is %.3f Btu/deg F",dS) \ No newline at end of file -- cgit