summaryrefslogtreecommitdiff
path: root/3826/CH5/EX5.22/Ex5_22.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3826/CH5/EX5.22/Ex5_22.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3826/CH5/EX5.22/Ex5_22.sce')
-rw-r--r--3826/CH5/EX5.22/Ex5_22.sce28
1 files changed, 28 insertions, 0 deletions
diff --git a/3826/CH5/EX5.22/Ex5_22.sce b/3826/CH5/EX5.22/Ex5_22.sce
new file mode 100644
index 000000000..9c55ac41a
--- /dev/null
+++ b/3826/CH5/EX5.22/Ex5_22.sce
@@ -0,0 +1,28 @@
+//the examples are continuously numbered throughout the textbook
+//Example 5_22 page no:313
+clc;
+//given
+len = 12;//in m
+wide = 7.5;//in m
+high = 4.5;//in m
+avg_lumen = 80;//in lumen per square meter
+height = 0.75;//in m
+coeff_uti = 0.3;
+tot_area = len * wide;
+tot_lumen = avg_lumen * tot_area;
+lamp_lumen_req = tot_lumen /coeff_uti;
+//suppose 100 watt lamps are used
+no_of_lamps = lamp_lumen_req / 1340;
+disp(no_of_lamps,"the number of lamps required would be ")
+disp("this can be arranged in 6 rows of 3");
+//suppose 200 watt lamps are used
+no_of_lamps = lamp_lumen_req / 2880;
+disp(no_of_lamps,"the number of lamps required would be ")
+disp("this can be arranged in 3 rows of 3");
+//suppose 80 watt lamps are used
+no_of_lamps = lamp_lumen_req / 2400;
+disp(no_of_lamps,"the number of lamps required would be ")
+disp("this can be arranged in 3 rows of 4");
+tot_energy = 12 * 80;
+disp(tot_energy,"the total energy consumption with the fluorescent lamps is (in W)");
+