summaryrefslogtreecommitdiff
path: root/3802/CH1/EX1.1/Ex1_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '3802/CH1/EX1.1/Ex1_1.sce')
-rw-r--r--3802/CH1/EX1.1/Ex1_1.sce35
1 files changed, 35 insertions, 0 deletions
diff --git a/3802/CH1/EX1.1/Ex1_1.sce b/3802/CH1/EX1.1/Ex1_1.sce
new file mode 100644
index 000000000..6ea01ce44
--- /dev/null
+++ b/3802/CH1/EX1.1/Ex1_1.sce
@@ -0,0 +1,35 @@
+//Book Name:Fundamentals of Electrical Engineering
+//Author:Rajendra Prasad
+//Publisher: PHI Learning Private Limited
+//Edition:Third ,2014
+
+//Ex1_1.sce.
+
+clc;
+clear;
+P=200; //power rating of lamp in watts
+V=110; //voltage rating of lamp in volts
+
+//case1
+printf("\n(a)")
+I=(P/V);
+printf("\nCurrent in the lamp=%f A",I)
+
+//case2
+printf("\n(b)")
+T=1; //time in hour for electric charge flow through the lamp
+t=T*60*60; //time in seconds for electric charge flow through the lamp
+q=I*t;
+printf("\nElectric charge flowing through the lamp for one hour=%f coloumb",q)
+
+//case3
+printf("\n(c)")
+Numberofdaysinmay=31;
+time=10; //on time of lamp in hour per day
+unitcharge=1.20; //electricity charge in rupees (1kwhr = 1unit)
+t1=time*Numberofdaysinmay; //on time of lamp in hour per month
+Energyconsumed=P*t1; //consumption of energy in watt-hour
+Energyconsumedinkwhr=Energyconsumed/(1e3);//consumption of energy in kilowatt-hour
+charges=Energyconsumedinkwhr*unitcharge;
+printf("\nCharge for electricity=%f rupees",charges)
+