Skip to content

Conversation

@jfahmy
Copy link

@jfahmy jfahmy 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? While it's possible to use a hash I don't think it would make the solution cleaner. You could create a hash that has three keys, one key for the array of adjectives, one key for the array of cooking styles, and one key for the array of food items. This is the only way that would seem meaningful to use a hash because the keys are not needed to identify the individual values within the array itself.
Did you find repetitions of the same or similar code? Why did you have to do it that way? To get the user input to build the arrays I needed to repeat the same until loop. I interpreted the requirement to mean that the user could provide different numbers of values for each array and I couldn't figure out how to do this without repetitive could. I could have avoided repetition if I'd forced the user to provide the same number of items for each array.
Did you use any loops? If so, how did it help solve a problem? I used loops to collection user input and to print the menu items.

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