/* CH13B.C */ /* Program to list buses with more than critical number of passengers */ #include main () { /* Description...... Initialise the array passengers_in_bus to zeroes Open input file Read first record WHILE not at the end of the input file Amend number of passengers in this bus Read next record Display headings FOR each bus IF bus has more than critical number of passengers Display bus number and number of passengers Close input file */ printf ("Buses with more than critical number of passengers\n") ; printf (" BUS PASSENGERS\n") ; }