Skip to content

Conversation

swubeshet
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 by using an array. I used an array because it was the best way to store the different items, especially since it was going to be shuffled using the .shuffle method.
Could you have stored components using a different data structure? For example, if you used an Array could you have used a Hash? I think I could have used hash, but an array was optimal for this problem because it was going to be shuffled anyway.
Did you find yourself repeating the same code? Why did you have to do it that way? No, I didn't repeat any code.
What type of loop did you use? Why did you choose that type? I used a times loop because I knew that I wanted the code to run 10 times.

@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. There is one line that should be indented, in the times loop.
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