From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2345/CH15/EX15.36/Ex15_36.sce | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 2345/CH15/EX15.36/Ex15_36.sce (limited to '2345/CH15/EX15.36') 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) -- cgit