Skip to content

Conversation

@npeters5
Copy link

@npeters5 npeters5 commented Feb 6, 2018

Mood Analysis

Congratulations! You're submitting your assignment.

Comprehension Questions

Question Answer
Would a hash work just as well as an Array in this project? Why? A hash could potentially work for generating random menu items but it seems unnecessary since hashes are better for storing specific data points and key/value pairs and our objective here was to more easily access the random elements in various arrays.
Did you find yourself repeating the same code? Why did you have to do it that way? Yes, for the optional enhancements I was building on what I wrote before so I was rewriting and tweaking things, especially validating user input and also deleting the elements in each array after they were randomly selected and used.
What type of loop did you use? Why did you choose that type? I used times and until loops. I used the times loop when I knew specifically (either through hard-coded or user input) the number of times I wanted to do something. And I used an until loop to wait for a certain condition to be met with the user input, and keep asking them for input until the condition was met.

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