from __future__ import division
#initializing the variables:
R = 0.2; # in ohms
n = 8; # no. of cells
e = 2.2; # in volts
#calculation:
es = n*e
ep = e
Rs = n*R
Rp = R/n
#results
print "(a)Resistance", Rs,"ohms; e.m.f", es,"Volts(V)"
print "(b)Resistance", Rp,"ohms; e.m.f", ep,"Volts(V)"
from __future__ import division
#initializing the variables:
r = 0.02; # in ohms
e = 2; # in volts
I1 = 5; # in Amperes
I2 = 50; # in Amperes
#calculation:
pd1 = e - (I1*r)
pd2 = e - (I2*r)
#results
print "(a)p.d", pd1,"Volts(V)"
print "(b)p.d", pd2,"Volts(V)"
from __future__ import division
#initializing the variables:
e1 = 25; # in volts
e2 = 24; # in volts
I2 = 10; # in Amperes
#calculation:
r = (e1 - e2)/I2
#results
print "Resistance", r,"Ohms"
from __future__ import division
#initializing the variables:
r = 0.2; # in ohms
n = 10; # no. of cells
e = 1.5; # in volts
R = 58; # in ohms
#calculation:
es = n*e
rs = n*r
I = es/(rs + R)
pd = es - (I*rs)
#results
print "(a)Current", I,"Amperes(A)"
print "(b)p.d", pd,"Volts(V)"