Question: Write a C++ program using a linked list queue of car wash. The node will contain car registration number, car owner name and pointer to
Write a C++ program using a linked list queue of car wash. The node will contain car registration number, car owner name and pointer to the next node.
The program should define function enqueue, dequeue and display the linked list.
The main program should have a menu :
Enter queue- which calls function enqueue to insert new node of car number and owner
Leave queue- which calls function dequeue to remove node of car number and owner from the front
Exit- exit the program
Every time option enter or leave queue is call, it must be followed by the call of function display to show the current list of the cars and owners in the linked list. The program will continue to run until option exit is chose.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
