Complete Project 2

The code performs the indicated task and is commented.