need help to modify this push button code

Your sample uses 5 push button using on analog input and 5 different resistor values. What help do you exactly need with this?
Excuse me if I'm wrong, but this sounds a bit like "let the forum do my school work for me". We help you do it but we don't do it for you.