Program 1, My Hat, It has Three Corners. (Sort of)

Short Description:

Song Lyrics.

This assignment is worth 50 points.

Goals

When you finish this homework, you should:

Formal Description

Write a program which will print out the lyrics for the song, "My Hat, It has Three Corners" (Sorry for the Barney Wiki link, it is the best I could find.)

Your program should print four verses of this song, the first with all words filled in, the second with the word "hat" replaced by blanks, the third with "hat" and "three" replaced with blanks, and so on.

The portions of the song that do not change should be stored in named constants.

Your program should end with four output statements repeated four times, once for each verse, with an assignment statement between each.

To make the program more interesting, we will turn this into a Mad Lib type song. To accomplish this, begin by asking the user for a phrase to represent an item, a quantity and a part of the item. Replace "hat", "three" and "corners" with these values.

Discussion

You should make appropriate use of constants and variables.

Your identifiers should be constructed properly, with meaningful names.

You should document your code with comments.

Your program should be fully interactive and provide the user with instructions.

Your program should perform all input at the beginning, echoing responses back to the user, then print the lyrics.

Your output should be organized, easy to read, and make appropriate use of white space.

Design

You should design this program, including an program design, before you implement the code. This design should be a submitted on Wednesday September 21, and should include: Please print this design document and hand it in at the beginning of class.

Required Files

A single source code file and a design document.

Submission

Email your final source code file to danbennett360@gmail.com.