Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create random_menu.rb #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

awilson2017
Copy link

Random Menu

Congratulations! You're submitting your assignment.

Comprehension Questions

Question Answer
How did you store menu components? Why? I stored them in an array because the assignment asked for arrays.
Could you have stored components using a different data structure? For example, if you used an Array could you have used a Hash? Yes, a different data structure could be used, for example a hash.
Did you find yourself repeating the same code? Why did you have to do it that way? One could argue I repeated code. However, at this stage in my learning, I feel my code is clean.
What type of loop did you use? Why did you choose that type? I used an each loop because I wanted to computer to iterate over all three arrays ten times.

@droberts-sea
Copy link
Collaborator

Random Menu

What We're Looking For

Feature Feedback
Random Menu of 10 items displayed in the terminal. yes
Generator pulls one random item from each array to create menu items. yes
Baseline
Readable code with consistent indentation. yes

Great work overall!


food_adjectives = [
"Crunchy",
"Soft",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like that you put these on separate lines. It takes up more vertical space but is very readable.

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.

2 participants