Program 2, Grandmother's Trunk
Short Description:
Simulate an interactive word game.
This assignment is worth 30 points.
Goals
When you finish this homework, you should:
- Demonstrated your ability to use basic string output.
- Demonstrated your ability to declare constants and variables.
- Demonstrated your ability to write a simple C++ program from scratch.
- Demonstrated your ability to perform string input.
Formal Description
Write a program which will play four rounds of the game "Grandmother's Trunk". This program should be interactive and allow the user to input multi-word items which are stored in their grandmother's trunk.
Grandmother's trunk is a simple story game to help children improve their memory skills. To play this game, the first player picks an object (in this case a knitted doily) and says "In my grandmother's trunk I found a knitted doily.". The second player selects an object (a stuffed teddy bear) and says: "In my grandmother's trunk I found a knitted doily and a stuffed teddy bear." and so on.
The game continues with each player adding the phrase "and a" and a new object.
In the real world, the game would continue until a player forgets an object in the story.
You should write a program which will play four rounds of grandmother's trunk. Each round, prompt the user for an item they found in the trunk and repeat the story.
Your output should be neat and organized, with plenty of white space between rounds.
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 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 Friday February 17, and should include:
- A high level description of the program.
- An algorithm.
- A list of questions associated with the assignment.
Please print this design document and hand it in at the beginning of class. It is worth 5 of the 30 points.
Required Files
A single source code file.
Submission
Email your final source code file to danbennett360@gmail.com.