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

Create random-menu-generator.rb #34

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

Conversation

frankienakama
Copy link

Random Menu

Congratulations! You're submitting your assignment.

Comprehension Questions

Question Answer
How did you store menu components? Why? Menu components were stored in three different arrays. One reason is because it was required in the assignment (haha). Another is so the three different types of information are separated, but because the number of items matched, they could be paired together randomly later in the code.
Could you have stored components using a different data structure? For example, if you used an Array could you have used a Hash? I'm sure there is a way a Hash could have been used, but I would have to look up how to randomize the items without putting adjectives where foods should be, or avoiding repetition, and similar problems.
Did you find yourself repeating the same code? Why did you have to do it that way? I did not need to repeat code.
What type of loop did you use? Why did you choose that type? I used a times loop to make sure 10 menu items were displayed, combining 10 different items from each of the three arrays, and ensuring they were listed consistently.

@PilgrimMemoirs
Copy link

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
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