Taxi trippin’!
The owner of some taxis wants us to do some calculations for them on their pack of taxis and the trips that they make. They own taxis in Cape Town and Durban.
Learning objectives
- Find the total of one attribute in a list of objects
- Find the minimum of one attribute in a list of objects
- Find all the objects matching a specific condition
- Find the total of one attribute for objects in a list matching a condition
- Find all the values of one attribute of objects matching a condition
- Do a calculation on attributes of objects matching a condition
- Do a calculation on attributes of grouped of objects
We’ll go through each idea in theory first, then in code.