Skip to content

Ride Share - Hannah#49

Open
hertweckhr1 wants to merge 3 commits into
Ada-C10:masterfrom
hertweckhr1:master
Open

Ride Share - Hannah#49
hertweckhr1 wants to merge 3 commits into
Ada-C10:masterfrom
hertweckhr1:master

Conversation

@hertweckhr1

Copy link
Copy Markdown

ride share

Congratulations! You're submitting your assignment.

Comprehension Questions

Question Answer
What did your data structure look like at first? Did this structure evolve over time? Why? My data structure remained the same throughout the project
What was your strategy for going through the data structure and gathering information? I went through the data structure and made sure each step (hash into array, into hash) was accounted for when I tried to call a variable.
What was an example of something that was necessary to store in a variable? What was the scope of that variable? Why? It was necessary to store the total_money_made hash as a variable. By creating this I was able to access the hash in order to find the sum of the dates.
What kinds of iteration did you use? Did you use .map? I used .map, max_by, and group_by
Were some calculations easier than others? Why? Yes, calculations were easiest when the variables were simplified. If I needed call nested variables, they were harder to call them correctly in the equation.

****PLEASE ONLY LOOK AT ride_share_correct.rb!!

@dHelmgren

Copy link
Copy Markdown

Exemplary work! Easy to read, good structure for your data, and nice use of group_by!

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