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 #44

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 I just had an array of hashes, with each hash being the data from each ride. It evolved into an array of arrays of hashes, with each array being the rides from each driver.
What was your strategy for going through the data structure and gathering information? I accessed each array with indices and accessed each hash with indices and the specific pieces of data with hash keys.
What was an example of something that was necessary to store in a variable? Why was it necessary, useful, or helpful? I created new arrays in many of the methods and then printed data for each driver from those arrays. In the avg rating method I also stored the ratings in a variable so I could round it 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 just used .times iterators to print each statement
Were some calculations easier than others? Why? It took me a little longer to figure out the max rating.

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