Skip to content

Conversation

@unkcodesquick
Copy link

@unkcodesquick unkcodesquick 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? In terms of storing data, a hash could work but would not make sense. Because the intention of the program is to generate random menu items, using key/value pairs doesn't add or improve the way the program would run and would probably get in the way of random generation.
Did you find repetitions of the same or similar code? Why did you have to do it that way? When I originally wrote the program there was a lot of repeated code, however, I created two methods to simplify the code and eliminate repetition. The methods can also create opportunity for scaleability in the event the user wanted to adjust how many words were used to describe each item.
Did you use any loops? If so, how did it help solve a problem? I used 3 distinct loops in the program. The loops were used to prompt user input and then run through the elements in the array to display the values back to the user both ordered and then through random menu generation.

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