summaryrefslogtreecommitdiff
path: root/3826/CH6/EX6.33/Ex6_33.sce
blob: 1415391bc656a495236d1b89a7fcdb1e7c70f37c (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
//Example 6_33 page no:368
clc;
//given
lumen = 1000000;//in lumen-hours
power = 100;//in W
voltage = 230;//in V
voltage2 = 210;//in V
cost = 3;//in rupees
life = 1000;//in hours
enf_cost = 5;//in paise
lumen_output = 1160;
//sol
//210V lamps
no_of_hrs = lumen / lumen_output;
cost_of_lamp = no_of_hrs * cost / life;
cost_of_eng = no_of_hrs * power * enf_cost / ( power *life);
tot_cost = cost_of_eng + cost_of_lamp;
//230V lamps operating at 210V
lumen_output = 810;
life = 2750;
power = 87.5;
no_of_hrs = lumen / lumen_output;
cost_of_lamp = no_of_hrs * cost / life;
cost_of_eng = no_of_hrs * power * enf_cost / ( 100 *1000);
total_cost = cost_of_eng + cost_of_lamp;
disp(tot_cost,"the total cost of 210V lamps is (in rupees)");
disp(total_cost,"the total cost of 230V lamps is (in rupees)");
disp("230V lamps are 2% cheaper than 210V lamps");