Queue Exercise

Implement a Queue with a maximum size of 5 elements using flowgorithm or a C program. The program must continuously prompt the user for an option:

add -if the user enters add, prompt the user to enter an integer and add it to the back of the queue.

remove -if the user enters remove, display the integer at the front of the queue and remove it

peek – If the user enters peek, display the integer at the front of the queue

exit – exits the program.

Use the following template in flowgorithm if necessary:

https://drive.google.com/file/d/1wFmReWDQbIYKV8z4kNXYvs9XarPIvnoo/view?usp=sharing

© 2020  Vedesh Kungebeharry. All rights reserved. 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s