summaryrefslogtreecommitdiff
path: root/2345/CH15/EX15.36/Ex15_36.sce
diff options
context:
space:
mode:
Diffstat (limited to '2345/CH15/EX15.36/Ex15_36.sce')
-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)