First time posting in this thread, hoping I can get help on a homework I'm stuck with.

Working on a homework on buck-boost, given the following :

- Vin = 12V
- Vout = -5V
- R load = 2.5 ohm
- Fsw = 20kHz
- Assume ideal, at CCM

- Duty cycle = 0.2941
- Inductor current = 2.833A
- Inductor value (assuming delta IL = 15% of IL) = 20.76uH
- Capacitor value (assuming delta Vc = 25mV) = 58.82uF

My understanding is that the Vq is the switching voltage. Which means that the waveform should look something like this:

Assuming that, for question 12, the peak voltage should be equal to Vin = 12V. Furthermore, for #13, my guess is the DC component of this waveform should be Vin * D = 2.99V. Of course I got both questions wrong and thus I'm here looking for advice. Not sure how else to go about this logic at the moment. Any help is appreciated, thanks!