Skip to content

Conversation

@danimetz
Copy link

@danimetz danimetz commented Aug 7, 2018

Random Menu Generator

Congratulations! You're submitting your assignment.

Comprehension Questions

Question Answer
For the places where arrays were used, could using a hash work? Could it work easily? Why or why not? Because we are randomly generating these menu items from 3 different arrays I'm not sure it makes sense to use a hash in this case.
Did you find repetitions of the same or similar code? Why did you have to do it that way? By using the shuffle function I was able to delete most of the repetition I originally had.
Did you use any loops? If so, how did it help solve a problem? I used a While loop to make sure the user selected a number that worked with the number of menu items. Then I used a do loop to print the final random menu.

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.

1 participant