Six different programs, each able to be selected with a microswitch

Hello,
I'm new to Arduino, and I have this idea, but I don't know if it's feasible. I have the following setup:

Those are 6 micro-switches. Now, I'm wondering if I can control which sketch Arduino executes by way of activating the switches. Or can I just put them in a single program and somehow see which switch is on and run the corresponding code?

Put your six sketches in six functions and run whichever function you need depending on the activated switch.

How can I detect which micro-switch is on?
And thank you for your quick answer.

Not too different to how do you detect one switch being pressed.

Alternatively you can hook them all up to one analog pin and have each switch connected via a resistor of different value.

iva188:
How can I detect which micro-switch is on?

That depends.

Do you have six inputs available or not?
(I guess you could do with three but that's a bit more of a headache)

If you're low on inputs, Shpaget is right.

Bianco:
Put your six sketches in six functions and run whichever function you need depending on the activated switch.

but be very careful about your use of RAM

I think I understand now. Would it be something similar to this tutorial with a switch (button):
www.arduino.cc/en/tutorial/switch
but executing the corresponding function instead of changing the LED intensity?

Yes, very similar.