Passing a value to functions held in an array of functions

Thanks John. The switch/case was where I started and the array of function pointers was just an interesting diversion from which I learnt something and others might too if they come across this topic