summaryrefslogtreecommitdiff
path: root/3733/CH34/EX34.22/Ex34_22.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3733/CH34/EX34.22/Ex34_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 '3733/CH34/EX34.22/Ex34_22.sce')
-rw-r--r--3733/CH34/EX34.22/Ex34_22.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/3733/CH34/EX34.22/Ex34_22.sce b/3733/CH34/EX34.22/Ex34_22.sce
new file mode 100644
index 000000000..febdb5174
--- /dev/null
+++ b/3733/CH34/EX34.22/Ex34_22.sce
@@ -0,0 +1,23 @@
+// Example 34_22
+clc;funcprot(0);
+//Given data
+N=50000;// Number of domestic customers
+Fc=2.5*10^7;// Fixed charges in rupees
+Ec=2*10^7;// Energy charges in rupees
+Cc=0.5*10^7;// Customer charges in rupees
+p=20*10^5;// Profit in rupees
+MD=5000;// kW
+F_d=4;// Diversity factor
+F_l=0.3;// Load factor
+
+//Calculation
+FC=Fc+((25/100)*p);// Fixed cost in rupees
+EC=Ec+((50/100)*p);// Energy cost in rupees
+CC=Cc+((25/100)*p);// Customer charges in rupees
+MD_i=MD*F_d;// kW
+E=MD*F_l*8760;// kW-hrs
+Fc_kW=FC/(MD_i);// Fixed cost per kW per year in Rs./kW
+C=CC/N;// Changes per customer per year in rupees
+Er=EC/E;// Energy rate in Rs./kWh
+printf('\nFixed cost per kW per year=Rs.%0.0f/kW \nEnergy rate=Rs.%0.1f/kWh \nThree charge rate=Rs.%0.0f+%0.0f kW+%0.1f/kWh',Fc_kW,Er,C,Fc_kW,Er);
+// The answer provided in the textbook is wrong