summaryrefslogtreecommitdiff
path: root/608/CH6/EX6.03
diff options
context:
space:
mode:
Diffstat (limited to '608/CH6/EX6.03')
-rwxr-xr-x608/CH6/EX6.03/6_03.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/608/CH6/EX6.03/6_03.sce b/608/CH6/EX6.03/6_03.sce
new file mode 100755
index 000000000..532dcc96f
--- /dev/null
+++ b/608/CH6/EX6.03/6_03.sce
@@ -0,0 +1,13 @@
+//Problem 6.03:A 5 μF capacitor is charged so that the pd between its plates is 800 V. Calculate how long the capacitor can provide an average discharge current of 2 mA.
+
+//initializing the variables:
+I = 2E-3; // in amperes
+C = 5E-6; // in Farad
+V = 800; // in volts
+
+//calculation:
+Q = C*V
+t = Q/I
+
+printf("\n\nResult\n\n")
+printf("\n capacitor can provide an average discharge current of 2mA for %.0f Sec\n",t) \ No newline at end of file