summaryrefslogtreecommitdiff
path: root/2870/CH2/EX2.13/Ex2_13.sce
diff options
context:
space:
mode:
Diffstat (limited to '2870/CH2/EX2.13/Ex2_13.sce')
-rwxr-xr-x2870/CH2/EX2.13/Ex2_13.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/2870/CH2/EX2.13/Ex2_13.sce b/2870/CH2/EX2.13/Ex2_13.sce
new file mode 100755
index 000000000..6247e5cd1
--- /dev/null
+++ b/2870/CH2/EX2.13/Ex2_13.sce
@@ -0,0 +1,16 @@
+clc;clear;
+//Example 2.13
+
+//given values
+Plamp=80;
+N=30;//no of lamps
+t=12;
+y=250;//days in a year
+UC=0.07;//unit cost in USD
+
+//calculation
+LP=Plamp * N/1000;//Lighting power in kW
+OpHrs=t*y;//Operating hours
+LE=LP * OpHrs;//Lighting energy in kW
+LC=LE*UC;//Lighting cost
+disp(LC ,'the annual energy cost in USD is ')