Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a function called menu that is called by main when your program starts Your function must be named menu Your function does not return
Write a function called menu that is called by main when your program starts Your function must be named menu Your function does not return any value. Your function does not take any parameters. Your function must call story1, story2 and story3 functions. . * Inside your menu function, you should first ask the user which story they want to play. Your question should look like: "Which story would you like to play? Enter the number of the story (1, 2, or 3) or type q to quit: If the user types q your program should print "good bye" and exit the function. . If the user types in an invalid input, for example "17" or "slkerjqoe", you should print "Valid choice not selected." If the user types in a valid story number, the menu function should call the corresponding story function (story1, story2, or story3)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started