#Given
HF=2
EF=1.9
#Calculation
L=0.5*HF
DB=0.5*EF
#Result
print"Maximum height of mirror is", L,"m"
print"Bottom edge of the mirror is",DB,"m"
#Given
u=-15.0 #cm
f=-10 #cm
o=2.0 #cm
#Calculation
v=1/((1.0/f)-(1.0/u))
m=v/u
I=-m*o
#Result
print"Position of the image is", v,"cm"
print"Size of the image is",I,"cm"
print"Nature of the image isreal and inverted "
#Given
u=-10.0 #cm
f=-15.0
#Calculation
v=1/((1/f)-(1/u))
m=-v/u
#Result
print"(i) Image position is", v,"cm"
print"(ii) Magnification is", m
#Given
f=12.0
v=4.0
#Calculation
u=1/((1/f)-(1/v))
m=-v/u
#Result
print"(i) Object position is", u,"cm"
print"(ii) Magnification is", round(m,2)
#Given
R=36 #ohm
#Calculation
f=-R/2.0
u=(2*f)/3.0
#Result
print"Position of the object is", u,"cm"
#Given
R=20 #cm
#Calculation
f=R/2.0
u=-f
v=-u/2.0
#Result
print"Position of the object is",u,"cm"
print"Position of the image is",v,"cm"
#Given
f=-15.0
#Calculation
u=(1/(1/f)/3.0)*4
v=u/2.0
#Result
print"Position of object is" ,u,"cm"
print"When the image is virtual",v,"cm"
#Given
R=30 #ohm
u=-10.0
h1=5
#Calculation
f=R/2.0
v=1/((1/f)-(1/u))
h2=(-v*h1)/u
#Result
print"Position of the image is", v,"cm"
print"Size of the image is",h2,"cm"
print"The image is virtual"
#Given
f=-10.0 #cm
u=-25.0 #cm
h1=3
#Calculation
v=1/((1/f)-(1/u))
h2=(-v*h1)/u
A=h2**2
#Result
print"Area enclosed by the image of the wire is", A,"cm**2"