summaryrefslogtreecommitdiff
path: root/3769/CH5/EX5.41/Ex5_41.sce
blob: e61913fedd9a29cf0e27025b536415915741f313 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
clear
//Given
V=1.5
a=1.5
r1=0.5                     //ohm
r2=0.25
R=2.25                      //ohm

//Calculation
E=V+a
r=r1+r2
Rt=r+R
I=E/Rt
pd=V-(I*r1)
pd1=V-(I*r2)

//Result
printf("\n (i) The circuit current is  %0.3f  A",I)
printf("\n (ii) P.D across the terminals of each  cell is  %0.3f V and  %0.3f V",pd,pd1)