diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2471/CH8/EX8.7/Ex8_7.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2471/CH8/EX8.7/Ex8_7.sce')
-rwxr-xr-x | 2471/CH8/EX8.7/Ex8_7.sce | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/2471/CH8/EX8.7/Ex8_7.sce b/2471/CH8/EX8.7/Ex8_7.sce new file mode 100755 index 000000000..488930879 --- /dev/null +++ b/2471/CH8/EX8.7/Ex8_7.sce @@ -0,0 +1,25 @@ +clear ;
+clc;
+// Example 8.7
+printf('Example 8.7\n\n');
+printf('Page No. 235\n\n');
+
+//given
+N = 40;// Number of lamps
+T1 = 15;// Operating time in h per day
+P = 500;// POwer from the lamps in W
+T2 = 300;// Total operating time in days per year
+C = 2.5/10^3;// Electricity cost in p per Wh
+
+An_Cost = N*P*T1*T2*C*10^-2;// In euro
+printf('The Annual Cost is %.0f Euro \n',An_Cost)
+
+//Improvement in light by installing glassfibre skylights
+T3 = 5;// Extra Time for natural lighting in h per day
+New_An_Cost = N*P*(T1-T3)*T2*C*10^-2;// In euro
+printf('The New Annual Cost is %.0f Euro \n',New_An_Cost)
+
+Save = An_Cost - New_An_Cost;// in euro
+printf('The annual saving for a pay-back period of 2.5 years is %.0f ',Save)
+
+
|