# given data
Vin= 15.0## V
R_L= 10.0## kΩ
# The output voltage
Vout= Vin ## V
# The current
I= Vout/R_L## mA
print "The output voltage = %.2f volts"%Vout
print "The current = %.2f mA"%I
# given data
Vin= 15.0## V
I=0#
R_L= 10.0## kΩ
R_L= R_L*10**3## Ω
# The output voltage
Vout= I*R_L## V
# The voltage across the diode
V_R= Vin-Vout## V
print "The output voltage = %.f volts"%Vout
print "The voltage across the diode = %.2f volts"%V_R
# given data
Vin= 15.0## V
V_P= Vin## V
R_L= 10## kΩ
R_L= R_L*10**3## Ω
Vout=0#
# The peak current through the diode
I_P= V_P/R_L## A
# The maximum reverse voltage
V_R= Vin-Vout## V
I_P= I_P*10**3## mA
print "The peak current through the diode = %.2f mA"%I_P
print "The maximum reverse voltage = %.2f volts"%V_R
# given data
Vin= 15.0## V
V_K= 0.7## V
R_L= 10.0## kΩ
R_L= R_L*10**3## Ω
# The output voltage
Vout= Vin-V_K## V
# The current
I= Vout/R_L## A
# The power dissipation of the diode
P= V_K*I## W
I=I*10**3## mA
P= round(P*10**3)## mW
print "The output voltage = %.2f volts"%Vout
print "The current = %.2f mA"%I
print "The power dissipation of the diode = %.2f mW"%P
# given data
Vin= 15.0## V
V_K= 0.7## V
Vout=0## V
R_L= 10.0## kΩ
R_L= R_L*10**3## Ω
# The peak output voltage
V_P= Vin-V_K## V
# The maximum forward current
I_P= V_P/R_L## A
# The peak inverse voltage
PIV= Vin-Vout## V
I_P= I_P*10**3## mA
print "The peak output voltage = %.2f volts"%V_P
print "The maximum forward current = %.2f mA"%I_P
print "The peak inverse voltage = %.2f volts"%PIV
# given data
Vin= 10.0## V
V_K= 0.7## V
Vout=0## V
R_L= 1000.0## kΩ
r_B= 20.0## Ω
# The peak forward current,
I_P= (Vin-V_K)/(R_L+r_B)## A
# The peak voltage
V_P= I_P*R_L## V
# The peak inverse voltage
PIV= Vin-Vout## V
print "The peak voltage = %.2f volts"%V_P
print "The peak inverse voltage = %.2f volts"%PIV