The circuit of Figure P5.29 includes a model of a voltage-controlled switch. When the voltage across the capacitor reaches 7 V , the switch is closed. When the capacitor volage reaches 0.5 V , the switch opens. Assume that the capacitor voltage is initially $V_C=0.5$ V and that the switch has just opened.
a. Sketch the capacitor voltage versus time, showing explicitly the periods when the switch is open and when the switch is closed.
b. What is the period of the voltage waveform across the $10-\Omega$ resistor?