# given data
V1=15.## V
V2=1.## V
R= 100.## Ω
# The load current
I= (V1-V2)/R## A
I= I*10**3## mA
print "The load current = %.2f mA"%I
# given data
I= 4## mA
I=I*10**-3## A
V1=0.5## voltage across diode = %.2f V
R=100## Ω
# The input voltage
V= V1+I*R## V
print "The input voltage = %.2f volts"%V
# given data
Eta= 0.85#
V= 10.## V
V1= Eta*V## V
V= 20.## V
R= 400.## Ω
# The emitter current
I_E= V/R## A
I_E= I_E*10**3## mA
print "The emitter current = %.2f mA"%I_E
# given data
V_E= 1## V
R= 400## Ω
I= 7*10**-3## A
# The emitter supply voltage
V= V_E+I*R## V
print "The emitter supply voltage = %.2f volts"%V