Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random_Menu_Generator #30

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Random_Menu_Generator #30

wants to merge 2 commits into from

Conversation

rbergena
Copy link

Random Menu

Congratulations! You're submitting your assignment.

Comprehension Questions

Question Answer
How did you store menu components? Why? I stored the menu components in arrays because I wanted to use the array indices to randomly select (without duplicating) strings.
Could you have stored components using a different data structure? For example, if you used an Array could you have used a Hash? Since the arrays held like items (e.g., adjectives, cooking methods, and foods) I could have used those as keys in a hash and perhaps the value pair would have been an array with the strings.
Did you find yourself repeating the same code? Why did you have to do it that way? I repeated the code asking the user to choose an appropriate number. I did this so that I could loop an appropriate prompt for the user "please provide a number less than 10 or greater than 0."
What type of loop did you use? Why did you choose that type? I used a while loop for the user prompt because I wanted the prompt to only appear while the user provided an inappropriate response. I then used a times loop for the numbered menu items because the menu would include a discrete number of items indicated by the user.

@PilgrimMemoirs
Copy link

PilgrimMemoirs commented Aug 10, 2017

Random Menu

What We're Looking For

Feature Feedback
Random Menu of 10 items displayed in the terminal. Well Done!
Generator pulls one random item from each array to create menu items. Well Done!
Baseline
Readable code with consistent indentation. Well Done!
Extras
Great job on the use of while to check for an appropriate number from the user, calling the shuffle method once on the arrays and then going by index and answering the comprehension questions.
Submission meets project expectations and learning goals. Nice work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants