Write a queue-handling program that asks each customer for their names as they place orders at a fast food restaurant.
Each record in the queue should consists of a name field with of 20 characters and an integer field, which keeps track
of the total number of customer served.

The value in the integer field should be automatically provided by the program each time a name is entered.
Orders are processed in the same sequence as they are placed. The order taker examines the queue and calls
the name when the order is ready. When the queue is empty, print a message telling the staff to take a break..

Can help me using a simple coding for give me understand...

Post the code you have already written

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.