| @@ -0,0 +1 @@ | ||
| 39 |
| @@ -0,0 +1,16 @@ | ||
| json bikeData = json("bikedata.json") | ||
| int count = 0 | ||
| int total = 0 | ||
|
|
||
| where (True) as ride { | ||
| int birthYear = ride["birth year"] | ||
|
|
||
| if (birthYear != 0) { | ||
| count = count + 1 | ||
| total = total + ride["birth year"] | ||
| } | ||
| } in bikeData["rides"] | ||
|
|
||
| int average = total / count | ||
|
|
||
| print(2015 - average) |