summaryrefslogtreecommitdiff
path: root/3802/CH1/EX1.1
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3802/CH1/EX1.1
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3802/CH1/EX1.1')
-rw-r--r--3802/CH1/EX1.1/Ex1_1.jpgbin0 -> 27273 bytes
-rw-r--r--3802/CH1/EX1.1/Ex1_1.sce35
2 files changed, 35 insertions, 0 deletions
diff --git a/3802/CH1/EX1.1/Ex1_1.jpg b/3802/CH1/EX1.1/Ex1_1.jpg
new file mode 100644
index 000000000..4350d9f02
--- /dev/null
+++ b/3802/CH1/EX1.1/Ex1_1.jpg
Binary files differ
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)
+