CSC340-Programming Methodology-Homework 5