# given data
Vin= 12.0## V
V_LED= 2## V
Rs= 470## Ω
Vs= Vin-V_LED## V
# The LED current
I= Vs/Rs## A
I= I*10**3## mA
print "The LED current = %.2f mA"%I
# given data
Vin= 5.0## V
V_LED= 2.0## V
Rs= 470.0## Ω
Vs= Vin-V_LED## V
# When supply voltage is 5 V, the LED current
I= Vs/Rs## A
I= I*10**3## mA
print "When supply voltage is 5 V, the LED current = %.2f mA"%I
Vin= 10## V
Vs= Vin-V_LED## V
# When supply voltage is 10 V, the LED current
I= Vs/Rs## A
I= I*10**3## mA
print "When supply voltage is 10 V, the LED current = %.2f mA"%I
Vin= 15## V
Vs= Vin-V_LED## V
# When supply voltage is 15 V, the LED current
I= Vs/Rs## A
I= I*10**3## mA
print "When supply voltage is 15 V, the LED current = %.2f mA"%I
Vin= 20## V
Vs= Vin-V_LED## V
# When supply voltage is 20 V, the LED current
I= Vs/Rs## A
I= I*10**3## mA
print "When supply voltage is 20 V, the LED current = %.2f mA"%I
# given data
C1= 560.0##transistor capacitance at 1V = %.2f pF
C2= 30##transistor capacitance at 10V = %.2f pF
# The tuning range
tuningRange= C1/C2#
print "The tuning range = %.2f"%tuningRange
# given data
Vin_min= 20.0## V
Vin_max= 40.0## V
Vz= 10.0## V
Rs= 820.0## Ω
# The minimum zener current,
Iz_min= (Vin_min-Vz)/Rs## A
# The maximum zener current,
Iz_max= (Vin_max-Vz)/Rs## A
# The output voltage,
Vout= Vz## V
Iz_min= Iz_min*10**3## mA
Iz_max= Iz_max*10**3## mA
print "The minimum zener current = %.2f mA"%Iz_min
print "The maximum zener current = %.2f mA"%Iz_max
print "The output voltage = %.2f V"%Vout
# given data
Rs= 820.0## Ω
Rz= 17.0## Ω
R_T= Rs+Rz## Ω
Vz= 10.0## V
Vin_min= 20.0## V
Vin_max= 40.0## V
# The minimum zener current
Iz_min= (Vin_min-Vz)/R_T## A
# The maximum zener current
Iz_max= (Vin_max-Vz)/R_T## A
# The minimum output voltage
Vout_min= Vz+Iz_min*Rz## V
# The maximum output voltage
Vout_max= Vz+Iz_max*Rz## V
Iz_min= Iz_min*10**3## mA
Iz_max= Iz_max*10**3## mA
print "The minimum zener current = %.2f mA"%Iz_min
print "The maximum zener current = %.2f mA"%Iz_max
print "The minimum output voltage = %.2f V"%Vout_min
print "The maximum output voltage = %.2f V"%Vout_max
# given data
P= 100.0## power rating = %.2f mW
V= 6.2## V
# The maximum current rating
I_ZM= P/V## mA
print "The maximum current rating = %.2f mA"%I_ZM
# given data
Vz= 12.0## V
Vout= Vz## V
Vin= 25.0## V
R_S= 180.0## Ω
R_L= 200.0## Ω
# The value of I_S
I_S= (Vin-Vout)/R_S## A
# The value of I_L
I_L= Vout/R_L## A
# The value of I_Z
I_Z= I_S-I_L## A
I_S= I_S*10**3## mA
I_L= I_L*10**3## mA
I_Z= I_Z*10**3## mA
print "The value of I_S = %.2f mA"%I_S
print "The value of I_L = %.2f mA"%I_L
print "The value of I_Z = %.2f mA"%I_Z
# given data
print "(i) For 200 Ω load resistance"
R_L= 200.0## Ω
Vz= 12.0## V
Vout= Vz## V
Vin= 25.0## V
R_S= 180.0## Ω
# The value of I_S
I_S= (Vin-Vout)/R_S## A
# The value of I_L
I_L= Vout/R_L## A
# The value of I_Z
I_Z= I_S-I_L## A
I_S= I_S*10**3## mA
I_L= I_L*10**3## mA
I_Z= I_Z*10**3## mA
print "The value of I_S = %.2f mA"%I_S
print "The value of I_L = %.2f mA"%I_L
print "The value of I_Z = %.2f mA"%I_Z
print "(ii) For 400 Ω load resistance"
R_L= 400## Ω
# The value of I_S
I_S= (Vin-Vout)/R_S## A
# The value of I_L
I_L= Vout/R_L## A
# The value of I_Z
I_Z= I_S-I_L## A
I_S= I_S*10**3## mA
I_L= I_L*10**3## mA
I_Z= I_Z*10**3## mA
print "The value of I_S = %.2f mA"%I_S
print "The value of I_L = %.2f mA"%I_L
print "The value of I_Z = %.2f mA"%I_Z
print "(iii) For 600 Ω load resistance"
R_L= 600## Ω
# The value of I_S
I_S= (Vin-Vout)/R_S## A
# The value of I_L
I_L= Vout/R_L## A
# The value of I_Z
I_Z= I_S-I_L## A
I_S= I_S*10**3## mA
I_L= I_L*10**3## mA
I_Z= I_Z*10**3## mA
print "The value of I_S = %.2f mA"%I_S
print "The value of I_L = %.2f mA"%I_L
print "The value of I_Z = %.2f mA"%I_Z
print "(iv) For 800 Ω load resistance"
R_L= 800## Ω
# The value of I_S
I_S= (Vin-Vout)/R_S## A
# The value of I_L
I_L= Vout/R_L## A
# The value of I_Z
I_Z= I_S-I_L## A
I_S= I_S*10**3## mA
I_L= I_L*10**3## mA
I_Z= I_Z*10**3## mA
print "The value of I_S = %.2f mA"%I_S
print "The value of I_L = %.2f mA"%I_L
print "The value of I_Z = %.2f mA"%I_Z
print "(v) For 1 kΩ load resistance"
R_L= 1*10**3## Ω
# The value of I_S
I_S= (Vin-Vout)/R_S## A
# The value of I_L
I_L= Vout/R_L## A
# The value of I_Z
I_Z= I_S-I_L## A
I_S= I_S*10**3## mA
I_L= I_L*10**3## mA
I_Z= I_Z*10**3## mA
print "The value of I_S = %.2f mA"%I_S
print "The value of I_L = %.2f mA"%I_L
print "The value of I_Z = %.2f mA"%I_Z
# given data
R_Z= 7.0## Ω
I_Z1=12.2## mA
I_Z2=60.2## mA
deltaV_Z=(I_Z2-I_Z1)*R_Z## mV
deltaV_Z= deltaV_Z*10**-3## V
Vz= 12## V
# The output voltage,
Vout= Vz+deltaV_Z## V
print "The output voltage = %.2f V"%Vout
# given data
Vz= 12.0## V
Vin= 15.0## V
R_S= 200.0## Ω
R_L= 1*10**3## Ω
# The value of I_S
I_S= (Vin-Vz)/R_S## A
# The value of I_L
I_L= Vz/R_L## A
# The value of I_Z
I_Z= I_S-I_L## A
I_S= I_S*10**3## mA
I_L= I_L*10**3## mA
I_Z= I_Z*10**3## mA
print "The value of I_S = %.2f mA"%I_S
print "The value of I_L = %.2f mA"%I_L
print "The value of I_Z = %.2f mA"%I_Z
# given data
print "(i) For 15 V input voltage"
Vin= 15.0## V
Vz= 12.0## V
R_S= 200.0## Ω
R_L= 1*10**3## Ω
# The value of I_S
I_S= (Vin-Vz)/R_S## A
# The value of I_L
I_L= Vz/R_L## A
# The value of I_Z
I_Z= I_S-I_L## A
I_S= I_S*10**3## mA
I_L= I_L*10**3## mA
I_Z= I_Z*10**3## mA
print "The value of I_S = %.2f mA"%I_S
print "The value of I_L = %.2f mA"%I_L
print "The value of I_Z = %.2f mA"%I_Z
print "(ii) For 20 V input voltage"
Vin= 20## V
# The value of I_S
I_S= (Vin-Vz)/R_S## A
# The value of I_L
I_L= Vz/R_L## A
# The value of I_Z
I_Z= I_S-I_L## A
I_S= I_S*10**3## mA
I_L= I_L*10**3## mA
I_Z= I_Z*10**3## mA
print "The value of I_S = %.2f mA"%I_S
print "The value of I_L = %.2f mA"%I_L
print "The value of I_Z = %.2f mA"%I_Z
print "(iii) For 25 V input voltage"
Vin= 25## V
# The value of I_S
I_S= (Vin-Vz)/R_S## A
# The value of I_L
I_L= Vz/R_L## A
# The value of I_Z
I_Z= I_S-I_L## A
I_S= I_S*10**3## mA
I_L= I_L*10**3## mA
I_Z= I_Z*10**3## mA
print "The value of I_S = %.2f mA"%I_S
print "The value of I_L = %.2f mA"%I_L
print "The value of I_Z = %.2f mA"%I_Z
print "(iv) For 30 V input voltage"
Vin= 30## V
# The value of I_S
I_S= (Vin-Vz)/R_S## A
# The value of I_L
I_L= Vz/R_L## A
# The value of I_Z
I_Z= I_S-I_L## A
I_S= I_S*10**3## mA
I_L= I_L*10**3## mA
I_Z= I_Z*10**3## mA
print "The value of I_S = %.2f mA"%I_S
print "The value of I_L = %.2f mA"%I_L
print "The value of I_Z = %.2f mA"%I_Z
print "(v) For 35 V input voltage"
Vin= 35## V
# The value of I_S
I_S= (Vin-Vz)/R_S## A
# The value of I_L
I_L= Vz/R_L## A
# The value of I_Z
I_Z= I_S-I_L## A
I_S= I_S*10**3## mA
I_L= I_L*10**3## mA
I_Z= I_Z*10**3## mA
print "The value of I_S = %.2f mA"%I_S
print "The value of I_L = %.2f mA"%I_L
print "The value of I_Z = %.2f mA"%I_Z