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 /2471/CH1/EX1.4/Ex1_4.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 '2471/CH1/EX1.4/Ex1_4.sce')
-rwxr-xr-x | 2471/CH1/EX1.4/Ex1_4.sce | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/2471/CH1/EX1.4/Ex1_4.sce b/2471/CH1/EX1.4/Ex1_4.sce new file mode 100755 index 000000000..5b515e949 --- /dev/null +++ b/2471/CH1/EX1.4/Ex1_4.sce @@ -0,0 +1,22 @@ +clear ;
+clc;
+// Example 1.4
+printf('Example 1.4\n\n');
+printf('Page No. 10\n\n');
+// Solution
+
+// Given
+mc= 1.5*10^3;// coke consumption in tonnes
+mg= 18*10^3;// gas consumption in therms
+me= 1*10^9;// electricity consumption in Wh
+Cc1= 72;// cost of coke in Pound per tonne
+Cg1= 0.20;// cost of gas in Pound per therm
+Ce1= 2.25*10^-5 ;// cost of electricity in Pound per Wh
+Cc= mc*Cc1;//in Pound
+Cg= mg*Cg1;//in Pound
+Ce= me*Ce1;//in Pound
+Ct= Cc+Cg+Ce;//in Pound
+printf('cost of coke consumption is %.0f Pound \n',Cc)
+printf('cost of gas consumption is %.0f Pound \n',Cg)
+printf('cost of electricity consumption is %.0f Pound \n',Ce)
+printf('total cost is %3.0f Pound \n',Ct)
|