From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 608/CH6/EX6.01/6_01.sce | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 608/CH6/EX6.01/6_01.sce (limited to '608/CH6/EX6.01') diff --git a/608/CH6/EX6.01/6_01.sce b/608/CH6/EX6.01/6_01.sce new file mode 100755 index 000000000..9871a8995 --- /dev/null +++ b/608/CH6/EX6.01/6_01.sce @@ -0,0 +1,15 @@ +//Problem 6.01:(a) Determine the p.d. across a 4 μF capacitor when charged with 5 mC. (b) Find the charge on a 50 pF capacitor when the voltage applied to it is 2 kV. + +//initializing the variables: +C1 = 4E-6; // in Farad +C2 = 50E-12; // in Farad +Q1 = 5E-3; // in Coulomb +V2 = 2000; // in volts + +//calculation: +V1 = Q1/C1 +Q2 = C2*V2 + +printf("\n\nResult\n\n") +printf("\n (a)P.d %.0f Volts(V)",V1) +printf("\n (b)Charge(Q) %.2E Coulomb(C)",Q2) \ No newline at end of file -- cgit