+ 2

[ASSIGNMENT] Main Menu program

First off how do I create an official challenge? Second: Make a “main menu” 1. Must be able to navigate back and forth through menu 2. Must have a minimum of two menu choices Suggestions: 1. It’s very helpful for non-graphical menus to have a command specifically for displaying all available commands 2. Get creative; have different commands do different things My attempt: https://code.sololearn.com/cZdbGyN1WwWK/?ref=app

3rd Apr 2018, 3:46 PM
Erik
Erik - avatar
7 Answers
+ 1
Yeah the eof error is one of the things I can’t figure out how to get around. Seems to come from trying to get an input while it’s being put together to run, as you said it takes all inputs at once in this app. Which is why I’m super open to suggestions and different ways to accomplish this in python and other languages, as I’m sure mine probably isn’t the ‘easiest’ most efficient way, regardless if it works or not. Just trying to learn more essentially
4th Apr 2018, 9:51 PM
Erik
Erik - avatar
0
Sweet. I love old school text-based menus.
3rd Apr 2018, 5:43 PM
Emma
0
well the thing is the code playground compiler takes all the inputs at once which makes it so that any "menu" one would make would be hard to interact with properly
3rd Apr 2018, 7:34 PM
hinanawi
hinanawi - avatar
0
Good old days, loved those menu's This is my code in C# https://code.sololearn.com/c93HKdUStx1z My test input was a b t q The playground is not a good place to have a Main Menu Program. But the code works.
3rd Apr 2018, 8:20 PM
sneeze
sneeze - avatar
0
I’d like to add that I have an answer already written, and it’s pretty dang intuitive given the nature of this app’s compiler. I just want to give people some time to figure out a solution without mine being stuck in their head, as I’m sure there are multiple ways to get this done, that id like to see.
3rd Apr 2018, 10:19 PM
Erik
Erik - avatar
0
@Erik code seems ok, but there are a few issues: -returns an EOF error when typing in "?" -as stated, the playground takes all inputs at once, so interactivity is lost for the most part however it works great if i put it into another compiler so gj
4th Apr 2018, 5:27 PM
hinanawi
hinanawi - avatar