NOTE: The programs have been tested but my solution is based on my interpretation of the task and also the level of programmer sitting the iGCSE exams. Let me know if you like it or if you have any ...