summaryrefslogtreecommitdiff
path: root/3826/CH6/EX6.30
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3826/CH6/EX6.30
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/CH6/EX6.30')
-rw-r--r--3826/CH6/EX6.30/Ex6_30.sce25
1 files changed, 25 insertions, 0 deletions
diff --git a/3826/CH6/EX6.30/Ex6_30.sce b/3826/CH6/EX6.30/Ex6_30.sce
new file mode 100644
index 000000000..ce087bb03
--- /dev/null
+++ b/3826/CH6/EX6.30/Ex6_30.sce
@@ -0,0 +1,25 @@
+//Example 6_30 page no:364
+clc;
+//given
+power = 37;//in kW
+motor_cost_a = 1440;//in rupees
+eff_a = 88;//in percentage
+motor_cost_b = 1920;//in rupees
+eff_b = 89;//in percentage
+opp = 3000;//in hours
+tariff = 6;//in paise per kWH
+dep = 10;//in percentage in per year
+output = 37;//in kW
+//motor A
+cap_charge = motor_cost_a * dep / 100;
+loss = ((1/0.88)-1) * output;
+yr_cost_loss_a = loss * opp * tariff / 100;
+disp(yr_cost_loss_a,"the yearly cost of motor A is (in rupees)");
+//motor B
+cap_charge = motor_cost_b * dep / 100;
+loss = ((1/0.89)-1) * output;
+yr_cost_loss_b = loss * opp * tariff / 100;
+disp(yr_cost_loss_b,"the yearly cost of motor B is (in rupees)");
+disp("the motor B gives the lower yearly cost");
+//the value of cost vary with textbook hence values are rounded off in textbook but the result is same
+