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 /167/CH2/EX2.13/ex13.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 '167/CH2/EX2.13/ex13.sce')
-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 |