Question: C++ code please , not java Question 4 ( 16 marks ) Write a function named BusStatistics(), that takes as parameter a two-dimensional array named

 C++ code please , not java Question 4 ( 16 marks

C++ code please , not java

Question 4 ( 16 marks ) Write a function named BusStatistics(), that takes as parameter a two-dimensional array named bus of size 4x5. By referring to the given Figure, the rows in the array bus represent the bus routes and the columns represent the days that the buses run. The numbers in the slots of the array show the number of passengers that were on a given route on a given day. The function will perform the following: Mon Tue Wed Thu Fri 0 1 2 3 4 0 8 12 9 7 10 1. For each route, print the total number of passengers. 2. For each route, find and print the largest number of passengers. 3. For all routes and all days, find and print the largest number of passengers. 1 5 7 31 4 Routes 2 20 15 18 31 14 3 6 9 8 11 n suar

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!