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 --- 2471/CH8/EX8.7/Ex8_7.sce | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 2471/CH8/EX8.7/Ex8_7.sce (limited to '2471/CH8/EX8.7') 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) + + -- cgit