diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /416/CH4/EX4.2/exp4_2c.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '416/CH4/EX4.2/exp4_2c.sce')
-rwxr-xr-x | 416/CH4/EX4.2/exp4_2c.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/416/CH4/EX4.2/exp4_2c.sce b/416/CH4/EX4.2/exp4_2c.sce new file mode 100755 index 000000000..9fefa66c3 --- /dev/null +++ b/416/CH4/EX4.2/exp4_2c.sce @@ -0,0 +1,12 @@ +clc
+clear
+disp('example 4 2')
+l=100;//connected load
+md=80;//maximum demand
+wt=0.6; //working time
+c=6000; //constant cost
+t=700; //cost on per kW
+re=1.8;//rate
+ec=l*wt*8760//electricity consumption per year
+teb=c+md*t+re*ec //total electricity bill per year
+printf(" energy consumption %dkWh \n total electricity bill per year Rs%d",ec,teb)
\ No newline at end of file |