1. timeline identifying the events in the story. 2. Identify…
Question Answered step-by-step 1. timeline identifying the events in the story. 2. Identify… 1. timeline identifying the events in the story. 2. Identify appropriate objects/classes and attributes/behaviours for those classes. 3. Sketch a class diagram showing the classes and appropriate relationships. This may be a somewhat iterative process with multiple versions. 4. Write code to implement the identified structures. 5. Write main() function(s) which when run will approximate the events of the story, or similar stories. It can be interactive if you like, to cover variations on the stories. Once upon a time there were three little pigsand the time came for them to leave home andseek their fortunes. Before they left, theirmother told them ” Whatever you do, do it thebest that you can because that’s the way toget along in the world.The first little pig built his house out ofstraw because it was the easiest thing to do.The second little pig built his house out ofsticks. This was a little bit stronger than astraw house. The third little pig built hishouse out of bricks.One night the big bad wolf, who dearly lovedto eat fat little pigs, came along and saw thefirst little pig in his house of straw. He said”Let me in, Let me in little pig, or I’ll huffand I’ll puff and I’ll blow your house in!” “Notby the hair of my chinny chin chin”, said thelittle pig. But of course the wolf did blow thehouse in and ate the first little pig.The wolf then came to the house of sticks. “Letme in, Let me in little pig, or I’ll huff andI’ll puff and I’ll blow your house in” howledthe wolf. “Not by the hair of my chinny chinchin”, said the little pig. But the wolf blewthat house in too, and ate the second little pig.The wolf then came to the house of bricks. “Letme in, let me in” cried the wolf. “Or I’ll huffand I’ll puff till I blow your house in.” “Notby the hair of my chinny chin chin” said thepig. Well, the wolf huffed and puffed but hecould not blow down that brick house.But the wolf was a sly old wolf and he climbedup on the roof to look for a way into the brickhouse. The little pig saw the wolf climb up onthe roof and lit a roaring fire in the fireplaceand placed on it a large kettle of water.When the wolf finally found the hole in thechimney he crawled down and KERSPLASH rightinto that kettle of water and that was theend of his troubles with the big bad wolf.The next day the little pig invited his motherover. She said “You see it is just as I toldyou. The way to get along in the world is todo things as well as you can.” Fortunatelyfor that little pig, he learned that lesson.And he just lived happily ever after! Computer Science Engineering & Technology C++ Programming CSCI 251 Share QuestionEmailCopy link Comments (0)


