Skip to content

Ports - Mina#29

Open
minams wants to merge 3 commits intoAda-C11:masterfrom
minams:master
Open

Ports - Mina#29
minams wants to merge 3 commits intoAda-C11:masterfrom
minams:master

Conversation

@minams
Copy link
Copy Markdown

@minams minams commented Feb 19, 2019

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? When I first started, my data structure was under the category of "rides." I quickly was stumped on how to pull unique information so I restructured the data to be categorized by the driver.
What was your strategy for going through the data structure and gathering information? I knew I had to iterate through the information so I knew I had to have arrays so that I could access the indexes. I had to figure out what information would work as an array and which should be in a hash. Then based on the prompts, I knew what information I needed to pull
What was an example of something that was necessary to store in a variable? Why was it necessary, useful, or helpful? The way I wrote my code, I had to store the highest amount of money into a variable and then re-assign my variable based on if another higher amount was found. It was necessary to assign as a variable so that my code would retain that information.
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? Yes, i used .map 3 times so that I could save the Driver_ID and the values associated with the ID based on the prompt into an array. I used .map so that I could compare the values and print out the associated Driver's ID of the person that earned the most and the person that had the highest rating.
Were some calculations easier than others? Why? Yes, I hadn't realized there isn't a method for average. I had to input the calculations into a specific area which took me a little bit to figure out.

@minams minams changed the title Rename worksheet.rb to ride-share.rb Ports - Mina Feb 19, 2019
@CheezItMan
Copy link
Copy Markdown

Ride Share

What We're Looking For

Feature Feedback
Answers the comprehension questions Check, you can always write your own average method if you chose to. I agree it's a surprising method to not have.
Readable code with consistent indentation and reasonable code style Check
Outputs the correct number of rides each driver has given Check
Outputs the total amount of money each driver has made Check
Outputs the average rating for each driver Check
Outputs which driver made the most money Check
Outputs which driver has the highest average rating Check

Summary | Nice work! You hit all the major learning goals of the project.

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