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 taylormililani #43

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

Conversation

TaylorMililani
Copy link

Assignment Submission: Ride Share

Congratulations! You're submitting your assignment. Please reflect on the assignment with these questions.

Reflection

Question Answer
What did your data structure look like at first? Did this structure evolve over time? Why? At first it was simply an array of hashes of each ride, then it evolved into an array of arrays of hashes with each subarray detailing each drivers rides.
What was your strategy for going through the data structure and gathering information? I had to access each subarray with indices and then access each hash with indices and then access the specific piece of information with the hash key.
What was an example of something that was necessary to store in a variable? Why was it necessary, useful, or helpful? In some of the methods I made new arrays to store drivers data and subsequently print statements using those arrays. In the avg rating method, I stored the avg rating to a variable x so I could round down to two decimal places
What kinds of iteration did you use? Did you use .map? If so, when? If not, why, or when would be a good opportunity to use it? I actually used .times for each iteration so I could print each statement out for each driver
Were some calculations easier than others? Why? most of them were pretty straight forward.

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