Solutions to Programming Problems and Exercises