Functions - Example 3

This example program imitates a queue of people waiting at a bus stop. There is an array which holds the names of the people waiting. The queue starts off empty.

You have three options. Enter option 1 to add a person to the queue (you will be prompted for the name). Enter option 2 to take some people off the queue (you will be prompted for how many people). Enter option 3. to finish the program.


Go back
Go Back