summaryrefslogtreecommitdiff
path: root/608/CH2/EX2.15/2_15.sce
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.15/2_15.sce
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.15/2_15.sce')
-rwxr-xr-x608/CH2/EX2.15/2_15.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/608/CH2/EX2.15/2_15.sce b/608/CH2/EX2.15/2_15.sce
new file mode 100755
index 000000000..5489f0ba1
--- /dev/null
+++ b/608/CH2/EX2.15/2_15.sce
@@ -0,0 +1,12 @@
+//Problem 2.15: A source of e.m.f. of 15 V supplies a current of 2 A for six minutes. How much energy is provided in this time?
+
+//initializing the variables:
+V = 15; // in Volts
+I = 2; // in ampere
+t = 360; // in sec
+
+//calculation:
+E = V*I*t
+
+printf("\n\nResult\n\n")
+printf("\nEnergy(E): %.0f Joule(J)\n",E) \ No newline at end of file