summaryrefslogtreecommitdiff
path: root/3826/CH5/EX5.22/Ex5_22.sce
blob: 9c55ac41ad3b2f527221d00c32754dc4e971c668 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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)");