blob: 782d77e0489c52eb3a73f1e3bde62079851b7add (
plain)
1
2
3
4
5
6
7
8
9
10
11
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)
|