These are the sample solutions for problems 8.16, 8.17 and 8.18. Note that there are several small discrepencies (like the problem numbers (again), major name (COSC instead of CS (Q8.16(a)), and the years F. Wong taught (Q8.16(c))) between the supplied solutions and the actual questions in your textbook.
Please report any problems to me.