summaryrefslogtreecommitdiff
path: root/608/CH2/EX2.17
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /608/CH2/EX2.17
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '608/CH2/EX2.17')
-rwxr-xr-x608/CH2/EX2.17/2_17.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/608/CH2/EX2.17/2_17.sce b/608/CH2/EX2.17/2_17.sce
new file mode 100755
index 000000000..72d9d7b99
--- /dev/null
+++ b/608/CH2/EX2.17/2_17.sce
@@ -0,0 +1,14 @@
+//Problem 2.17: An electric heater consumes 3.6 MJ when connected to a 250 V supply for 40 minutes. Find the power rating of the heater and the current taken from the supply.
+
+//initializing the variables:
+V = 250; // in Volts
+E = 3.6E6; // energy in J
+t = 2400; // in sec
+
+//calculation:
+P = E/t
+I = P/V
+
+printf("\n\nResult\n\n")
+printf("\nPower(P): %.0f Watt(W)",P)
+printf("\nCurrent(I): %.0f Ampere(A)\n",I) \ No newline at end of file