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 --- 167/CH2/EX2.13/ex13.sce | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 167/CH2/EX2.13/ex13.sce (limited to '167/CH2/EX2.13/ex13.sce') diff --git a/167/CH2/EX2.13/ex13.sce b/167/CH2/EX2.13/ex13.sce new file mode 100755 index 000000000..4863d7715 --- /dev/null +++ b/167/CH2/EX2.13/ex13.sce @@ -0,0 +1,11 @@ +//example 13 +// annual lighting cost of a classroom +clear +clc +p=80 //power consumed by fluoroscent lamp in watt +n=30 //no. of lamps used +P=p*n/1000 //lighting power in kW +t=250*12 //operating hours in a year +E=P*t //lighting energy/year +c=E*0.07 //cost of lighting a classroom for a year in dollars +printf("\n Hence,annual energy cost of lighting for the classroom is = %.0f $/year. \n",c); \ No newline at end of file -- cgit