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 /1529/CH2/EX2.19/2_19.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 '1529/CH2/EX2.19/2_19.sce')
-rwxr-xr-x | 1529/CH2/EX2.19/2_19.sce | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/1529/CH2/EX2.19/2_19.sce b/1529/CH2/EX2.19/2_19.sce new file mode 100755 index 000000000..50c5bbb85 --- /dev/null +++ b/1529/CH2/EX2.19/2_19.sce @@ -0,0 +1,18 @@ +//Chapter 2, Problem 19
+clc;
+P1=3000; //power in watts
+P2=150; //power in watts
+t1=20; //time in hours
+t2=30; //time in hours
+n1=2; //no of fires
+n2=6; //no of light
+m=14; //cost per unit
+E1=P1*t1;
+w1=n1*E1;
+E2=P2*t2;
+w2=n2*E2;
+T=w1+w2;
+c=m*(T/1000);
+printf("\nIf the cost of electricity is 14 p per unit\n")
+printf("\n the weekly cost of electricity to the business = %f p",c);
+printf("\n\t\t\t\t\t\t= %.2f euro",c/100);
|