Solution to 1aeb: Generic number manipulation
See code at solutions/code/tutorialquestions/question1aeb
This question was broken down into a series of steps, with hints for most steps. Look at the hints, together with the sample solution, to see how I have solved this question. Feel free to contact me if you would like further clarification.