Table of contents, revisited - Exercise

Start the program with an array holding all of the information for your table of contents (chapter names, page
numbers, and so on). Then print out the information from the array in a beautifully formatted table of contents.