Figure 1 shows an op-amp circuit for 4-bit digital-to-analog converter (DAC), which can convert a 4-bit digital word \(a_3a_2a_1a_0\) to an analog output. The value of each bit is represented by a corresponding switch. That is, if \(a_0\) is 1 then switch \(S_0\) connects to the +5-V power supply, while if \(a_0\) is 0 then switch \(S_0\) connects to ground.
(a) If the output voltage \(v_o\) ranges from 0 to −32 V, find \(R_1\), \(R_2\) and \(R_3\). (15%)
(b) Based on this circuit, please design an op-amp circuit which can convert a 4-bit digital word to an analog output ranging from 0 to 12 V. Any reasonable scheme is allowed. (5%)