summaryrefslogtreecommitdiff
path: root/2345/CH15/EX15.36
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2345/CH15/EX15.36
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2345/CH15/EX15.36')
-rwxr-xr-x2345/CH15/EX15.36/Ex15_36.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/2345/CH15/EX15.36/Ex15_36.sce b/2345/CH15/EX15.36/Ex15_36.sce
new file mode 100755
index 000000000..782d77e04
--- /dev/null
+++ b/2345/CH15/EX15.36/Ex15_36.sce
@@ -0,0 +1,12 @@
+//Finding cost
+//Example 15.36(pg. 417)
+clc
+clear
+O=5*735.5//output of motor in W
+e=0.85//efficiency of motor
+c=2//cost of energy per unit in Rs
+I=O/e//input of motor in Watts
+t=4//time in hrs
+E=I*t/1000//energy consumed in kWh
+C=c*E//cost of using the motor in Rs
+printf('Thus the cost of using the motor is %2.3f Rs',C)