Homework 3

This homework is worth 5 points.

When you finish this assignment you should be able to :

Rewrite program Two To use functions. Use the following functional decomposition.
GiveInstructions(void);

newItem = GetItemFromUser(void);
AddItemToStory(story,newItem);
TellStory(story);

newItem = GetItemFromUser(void);
AddItemToStory(story,newItem);
TellStory(story);

newItem = GetItemFromUser(void);
AddItemToStory(story,newItem);
TellStory(story);
You should use the following function prototypes:
// this function explains what the program 
// does and how the game is played.
void  GiveInstructions(void);

// This function will request an item from the user
string GetItemFromUser(void);

// this function will append an item to the story and return the new story.
void AddItemToStory(string & story, string newItem);

// this function will tell the story.  It will add a . and eoln after the story.
void TellStory(string story);

Once you have a working program, email the program to danbennett360@gmail.com. Please attach the source code file to your message. Please DO NOT send the executable file.