Simulate an Order Placement System where a Customer manages dynamically allocated Orders:
orderID (int), productName (std::string), quantity (int), price (double).displayOrderDetails() const, getTotalPrice() const returning quantity * price.customerID (int), customerName (std::string), Order* orders (dynamic heap array), int orderCount, int capacity.orderCount = 0.~Customer() deallocating dynamic memory with delete[] orders.addOrder(const Order& order) with capacity expansion.displayOrders() const printing order details and grand total expenditure.void linkOrderToCustomer(Customer* cust, const Order& order) calling cust->addOrder(order).Customer and multiple Order objects.linkOrderToCustomer() and display billing summary.[✓] Associated Order #501 with Customer Ayesha Malik [✓] Associated Order #502 with Customer Ayesha Malik [✓] Associated Order #503 with Customer Ayesha Malik === Order Summary for Ayesha Malik (ID: 1001) === - Order #501 | Mechanical Keyboard | Qty: 2 | Unit: $90.00 | Subtotal: $180.00 - Order #502 | 4K Gaming Monitor | Qty: 1 | Unit: $350.00 | Subtotal: $350.00 - Order #503 | Ergonomic Desk Chair | Qty: 1 | Unit: $220.00 | Subtotal: $220.00 ------------------------------------------------------------ Grand Total: $750.00 [✓] Dynamic aggregation & order linking verified (Time: 0.008s, Memory: 2.1 MB)