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 --- 647/CH5/EX5.2/Example5_2.sce | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 647/CH5/EX5.2/Example5_2.sce (limited to '647/CH5/EX5.2/Example5_2.sce') diff --git a/647/CH5/EX5.2/Example5_2.sce b/647/CH5/EX5.2/Example5_2.sce new file mode 100755 index 000000000..71efe00d9 --- /dev/null +++ b/647/CH5/EX5.2/Example5_2.sce @@ -0,0 +1,30 @@ +clear; +clc; + +// Example: 5.2 +// Page: 150 + +printf("Example: 5.2 - Page: 150\n\n"); + +// Solution + +//*****Data*****// +Th = 810;// [K] +Tl = 300;// [K] +//*************// + +// Solution (a) +eta = (Th - Tl)/Th; +printf("(a) The efficiency of the heat engine is %.1f %%\n",eta*100); + +// Solution (b) +Th = 1366;// [K] +Tl = 300;// [K] +eta = (Th - Tl)/Th; +printf("(b) The efficiency of the heat engine is %.1f %%\n",eta*100); + +// Solution (c) +Th = 810;// [K] +Tl = 344;// [K] +eta = (Th - Tl)/Th; +printf("(c) The efficiency of the heat engine is %.1f %%\n",eta*100); \ No newline at end of file -- cgit