Question: 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 whenyour program starts Your function must be named menu Your function doesnot return any value. Your function does not take any parameters. Yourfunction must call story1, story2 and story3 functions. . * Inside your

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

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 Databases Questions!