Question: in C + + Problem: Choose your way program For this problem, write a story that uses control statements to guide the story along depending
in C
Problem: Choose your way program
For this problem, write a story that uses control statements to guide the story along depending on what the user chooses. There should be levels of choices similar to what you see in the example below ie the user should have to make a choice at different points in your story The story should present the user with to options to choose from at each level. An example run is shown below:Little red riding hood is going to grandma's house. She approaches a fork in her path. Enter to take the left fork or enter to go right.
Little red riding hood went through the left path. As she continues taking more steps, the darker the path gets. She begins to hear growls and howls. Enter to pick up a near by branch or to run through the path.
Little red riding hood picks up the branch and takes it along with her as she walks down the path. She sees grandma's house shortly ahead and knocks on the door. Grandma answers the door but she looks different. Enter to go inside or enter to make an excuse and leave.
Little red riding hood believes the grandma standing before her is an imposter. She tells grandma she was just dropping off some goodies on her way to school and is running late. Red hands off the basket and runs away, waving goodbye at her grandma. She runs all the way to the police station. Red is later informed that it was a wolf posing as her grandma and that they were able to rescue her grandma. The End!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
