diff options
Diffstat (limited to '608/CH1/EX1.07/1_07.sce')
-rwxr-xr-x | 608/CH1/EX1.07/1_07.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/608/CH1/EX1.07/1_07.sce b/608/CH1/EX1.07/1_07.sce new file mode 100755 index 000000000..7fcac6714 --- /dev/null +++ b/608/CH1/EX1.07/1_07.sce @@ -0,0 +1,12 @@ +//Problem 1.07: A source e.m.f. of 5 V supplies a current of 3 A for 10 minutes. How much energy is provided in this time?
+
+//initializing the variables:
+V = 5; // in Volts
+I = 3; // in Ampere
+t = 600; // in sec
+//calculation:
+P = V*I
+E = P*t
+
+printf("\n\nResult\n\n")
+printf("\nEnergy(E): %.0f Joule(J)\n",E)
\ No newline at end of file |