Question: In C++ two different user inputs using a SWITCH statement. See appendix for checking string equality. Sample run 1: It is a dark and stormy

In C++ two different user inputs using a SWITCH statement. See appendix for checking string equality.

 In C++ two different user inputs using a SWITCH statement. See

Sample run 1: It is a dark and stormy night. Do you want to take an umbrella? (Y/N): Y Good you have an umbrella. You start to walk down a path and hear a scream. You realize that the person screaming is YOU because you see a wolf! Do you fight with your umbrella or run? ((F)ight/(R)un): F You take out your umbrella and jab it into the wolf's paw! It runs away and you live another day. Sample run 2: It is a dark and stormy night. Do you want to take an umbrella? (Y/N): Y Good - you have an umbrella. You start to walk down a path and hear a scream. You realize that the person screaming is YOU because you see a wolf! Do you fight with your umbrella or run? ((F)ight/(R)un): R You begin running so fast, the umbrella opens and you fly away like Mary Poppins. You're a little embarrassed, but you see the wolf fading off in the distance. Sample run 3: It is a dark and stormy night. Do you want to take an umbrella? (Y/N): N You decide not to take an umbrella. You start to walk down a path and hear a scream. You realize that the person screaming is YOU because you see a wolf! Do you fight with your umbrella or run? ((F)ight/(R)un): F You begin fighting the wolf only to realize you had just eaten a McGrease meal earlier. You fall dead from rigorous exercise, having had a heart attack. Sample run 4: It is a dark and stormy night. Do you want to take an umbrella? (Y/N): N You decide not to take an umbrella. You start to walk down a path and hear a scream. You realize that the person screaming is YOU because you see a wolf! Do you fight with your umbrella or run? ((F)ight/(R)un): R Are you serious? You can't outrun a wolf! The wolf catches you and you are somewhat relieved because you don't have to worry about that Calculus examm

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!