Solve the below problem:
Q: Consider a half-wave peak rectifier fed with a voltage vS having a triangular waveform with 24-V peak-to-peak amplitude, zero average, and 1-kHz frequency. Assume that the diode has a 0.7-V drop when conducting. Let the load resistance R = 100Ω and the filter capacitor C = 100 μF. Find the average dc output voltage, the time interval during which the diode conducts, the average diode current during conduction, and the maximum diode current.