A Mad Lib is a popular party activity where a potentially humorous story is written down, with blanks in the place of some of the key words. Before reading the story, the storyteller asks others present to fill in those blanks. Those selecting the words are only told the type of word required, and have no other knowledge of the story. This lack of context in selecting words can result in an entertaining story when the words are plugged in to the appropriate places. For example, consider the following beginning to a story.
It was a adjective kind of day when person's name walked out into the street. The sky was a deep color , and same name was walking his new pet animal ...
Making the following substitutions:
adjective = smarmy
person's name = Chris
color = mauve
animal = gnu
the story would read:
It was a smarmy kind of day when Chris walked out into the street. The sky was a deep mauve, and Chris was walking his new pet gnu ...
For this first assignment, you are to write a C++ program that serves as an interactive Mad Lib. Your program should prompt the user for words to fill in the blanks (e.g., an adjective, person's name, color, ...) and store those words in variables. After having read in all of the words, your program should display the story, using the values of the variables where appropriate.
The content of the story can be anything that you like -- be creative! Your story must meet the following conditions, however.
Your grade for this assignment will be partially based on the readability of your code. Your program should have comments at the top giving the file name, your name, date, and a brief description. Blank lines should be used in the code to separate natural sections, and indentation should be used to make code structure clear. See class notes for examples of good programming style.