CSC202 fast food restaurant may not have great food but it p

CSC202 fast food restaurant may not have great food but it prides itself being faster than its major competitors: CSC201, Nandoos, and Taco Tiger. CSC202 requires between 3 and 9 minutes to fill a customer order. On average, a customer arrives at CSC202 every 6 minutes. The manager would like for you to perform a simulation in order to gather statistics about the amount of time customers have to wait between the time they arrive and the time they get their order. For this assignment, You are required to implement a Queue ADT using array. In addition, because we just started our business, we assume there is only one person taking orders.

Solution

#include #include #include using namespace std; class queue { int queue1[5]; int rear,front; public: queue() { rear=-1; front=-1; } void enter(int x) { if(rear > 4) { cout <<\"queue over flow\"; front=rear=-1; return; } queue1[++rear]=x; cout <<\"order\" <> ch; switch(ch) { case 1: cout <<\"enter the time when customer comes\"; cin >> ch; qu.order(ch); break; case 2: qu.order(); break; case 3: qu.display();break; case 4: exit(0); } } return (0); }
CSC202 fast food restaurant may not have great food but it prides itself being faster than its major competitors: CSC201, Nandoos, and Taco Tiger. CSC202 requir

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site