blob: 3e4f70609e16c1073ebd49196837ff73a9e2d581 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
clear ;
clc;
// Example 8.5
printf('Example 8.5\n\n');
printf('Page No. 232\n\n');
//given
P = 600*10^3;// Power demand of pump in W
T = 8;// Operating time in hour per day
red = 1.00/10^3;// off-peak reduction in Pound per 10^3 W month
M_save = P*red;// Monthly saving Pound per month
A_save = M_save*12;// Annual saving in Pound per year
printf('Annual saving is %.0f Pound per year',A_save)
|