Skip to content

Conversation

@lauracodecreations
Copy link

@lauracodecreations lauracodecreations 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? yes, I could use an array of hashes to store the food adjectives, style, and type in separate hashes (one hash = one food item). I do not think it will work easily because I am accessing the three separate arrays at random, and arrays are good for that. I do not need a key-value pair in my final output
Did you find repetitions of the same or similar code? Why did you have to do it that way? yes, when collecting user input about food adjectives, style, and type. I did this way because I was adding to different arrays different information. But, I could have used only one loop by collecting food adjectives, style, and type in each loop iteration
Did you use any loops? If so, how did it help solve a problem? yes, they helped me when collecting user input multiple times, and printing 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