Program #7 -- CS 491 



Problem 17.12 from the book, page 435