last edited Feb 13 2017 by Sarah Shakibi | Created by Sarah Shakibi | Other contributors:
A solution in C# by Victor (17 years old) and another by Alistair in Python (15 yrs old)
Please download and test these two sample solutions created by my very kind and able students who beat me to it.
Another student has also given me a Java solution, if anyone needs that I’m happy to forward.
By downloading this resource you agree to the CAS resource guidelines and use it appropriately.
Note: Unless otherwise specified, this resource and all associated files are published here under the Creative Commons Attribution-Share Alike 3.0 Licence. If you wish to use a different license, please state this in the description.