Transistor Problems

Hi

I am with the same question, the only thing to switch between four fixed voltages, so I thought of using 4 transistors and 4 resistors according to its value, you will get a corresponding output. Perhaps also with a mosfet can be done, I have little idea. Any idea finest do my suggestion? Thank you.

regards