Homework no1 for Computer Programming