This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
We don't like to hand out solutions to homework problems here. We do, however, like to help people figure them out for themselves. If you give it a try, and then show us what you've got, we'd be happy to critique it; if you get stuck, we'll be happy to give you a hint. If you don't know where to start, then tell us what you do know, and we'll tell you what you need to learn.