diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3826/CH6/EX6.33/Ex6_33.sce | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-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/CH6/EX6.33/Ex6_33.sce')
-rw-r--r-- | 3826/CH6/EX6.33/Ex6_33.sce | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/3826/CH6/EX6.33/Ex6_33.sce b/3826/CH6/EX6.33/Ex6_33.sce new file mode 100644 index 000000000..1415391bc --- /dev/null +++ b/3826/CH6/EX6.33/Ex6_33.sce @@ -0,0 +1,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");
|