Skip to content

Conversation

2020dream
Copy link

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? Not in terms of implementation. It's easier to implement a method to access random values in an array by generating a random number(index). To achieve this goal, the implementation would be more complicated if hash is used.
Did you find yourself repeating the same code? Why did you have to do it that way? I did try to define and reuse methods as much as I can. But still some of the code (#Instruction for data inputs & #Create output message) looks not DRY to me. I haven't figure out a way to make the code look better. I am also not sure whether it's necessary to define a method for messaging printout.
What type of loop did you use? Why did you choose that type? I used "until" while storing user's data, "while" while asking user for number of items, and ".times" when create output messages. I did this based on the logic of the program. I also want to make sure the code is as short and readable as possible.

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