Skip to content

Conversation

@elle-johnnie
Copy link

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? In this situation, where random sampling of data is necessary, arrays are the ideal approach. Randomly pulling data from hashes is more difficult due to the unordered nature of the data structure.
Did you find repetitions of the same or similar code? Why did you have to do it that way? On this project I repeated bits of code to get data for the 3 different arrays. This was necessary to ensure that readability and user entries were valid and appropriately applied to the correct arrays.
Did you use any loops? If so, how did it help solve a problem? Yes, to ensure proper user input and avoid redundant code.

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