Pr13
Pizza parlor accepting maximum M orders. Orders are served in first come first served basis. Order once placed cannot be cancelled. Write C++ program to simulate the system using circular queue using array. Objectives:- 1. To understand concept of circular queue. #include <iostream> #include <string> using namespace std; class PizzaParlor { private: string* orders; // Array to store pizza orders int front; // Front pointer (for serving orders) int rear; // Rear pointer (for placing orders) int capacity; // Maximum capacity (M orders) int size; // Current number of orders public: // Constructor to initialize the queue with a given capacity PizzaParlor(int M) { capacity = M; orders = new ...