summaryrefslogtreecommitdiff
path: root/608/CH6/EX6.03/6_03.sce
blob: 532dcc96f1fa0f77afda7ef7d603c59e23f11591 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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)