I'm having problem here, i can't print out the 3rd - 5th day... i can only print the first 2 days.... how do i fix it? i changed practically almost everything.
And can you give me some ideas of how to...
1. Print the total passengers for day 1.
2. Print the total number of passengers for the route stored in row 0.
3. Print the maximum number of passengers for the route stored in row 3.
4. Print the minimum number of passengers for the 4th day.
5. Print the average number of passengers for all days and all routes.
You can loop day from 0-4 and then simply add +1 when you print it.
The alternative would be to have it as you have it right now only that you subtract 1 on each array access but I think this way is more error prone. Getting the wrong output is obvious and simple to fix while getting array indices wrong could lead to strange errors that are not always easy to spot.