selecting numbers with a potmeter

can anyone help me in the right direction?

The right direction would obviously be to use analogRead() to read the potentiometer value and digitalRead() to read the switch states. Of course, this approach presupposes that you know how to connect the switch and potentiometer to the Arduino.