Term project problem

problem from term project, all solution in one file which is comment
out. Uncomment it to use