(1) across R in Fig (a) and (2) across the diode in Fig. (b)? Assume that the diode is ideal.