diff options
Diffstat (limited to '167/CH2/EX2.13')
-rwxr-xr-x | 167/CH2/EX2.13/ex13.sce | 11 |
1 files changed, 11 insertions, 0 deletions
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 |