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 /656/CH1/EX1.9 | |
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 '656/CH1/EX1.9')
-rw-r--r-- | 656/CH1/EX1.9/example1_9.pdf | bin | 0 -> 8135 bytes | |||
-rw-r--r-- | 656/CH1/EX1.9/example1_9.sce | 30 |
2 files changed, 30 insertions, 0 deletions
diff --git a/656/CH1/EX1.9/example1_9.pdf b/656/CH1/EX1.9/example1_9.pdf Binary files differnew file mode 100644 index 000000000..f827db450 --- /dev/null +++ b/656/CH1/EX1.9/example1_9.pdf diff --git a/656/CH1/EX1.9/example1_9.sce b/656/CH1/EX1.9/example1_9.sce new file mode 100644 index 000000000..c775aed3a --- /dev/null +++ b/656/CH1/EX1.9/example1_9.sce @@ -0,0 +1,30 @@ +// total power P consumed is 3300Kwh
+
+// base monthly charge BMH is 12$
+
+//First 100 kWh @ $0.16/kWh = $16.00 ; Next 200 kWh @ $0.10/kWh = $20.00; Remaining 100 kWh @ $0.06/kWh = $6.00
+
+charge=16+12+20+6;
+
+disp(charge)
+units='Coulombs C'
+Q=[string(charge) units];
+disp(Q)
+// in coulombs C
+
+
+// total charge is 54$
+
+// avg cost AC is
+
+AC=charge/(100+200+100);
+
+disp(AC)
+units='Cents/KWH'
+AC=[string(AC) units];
+disp(AC)
+
+
+//13.5 cents/KWH
+
+
|