Question: Task 1 Write a C++ class definition for the OrderManager class (in OrderManager.h). This defi nition must include all relevant data members and member functions

 Task 1 Write a C++ class definition for the OrderManager class

(in OrderManager.h). This defi nition must include all relevant data members and

member functions to allow for the following functionality . set the time

Task 1 Write a C++ class definition for the OrderManager class (in OrderManager.h). This defi nition must include all relevant data members and member functions to allow for the following functionality . set the time taken to prepare an order (assume this is the same for all orders) e allow the client to place orders . store a unique order number for each order placed store the time when an order is placed (time when you start preparation) . allow the client to collect an order if enough time has elapsed from placing the order to collecting (to allow for preparation). Pay attention to which members should be private and which should be public. The client will need to interact with your code. To ensure the client can develop code that will interface with you r code the following p ublic functions must appear . int placeOrder ) a function to handle placing an order this should return a unique order number and store the order start time bool collectOrder (int orderNumber) - a function to allow for collection of an order if the order is ready (using a given uniqu order number) once an order is collected you will want to remove it from the list of orders you are storing. Return true if a collection is successful and false if it is not (whatever the reason may be) . bool setPrepareTime (double seconds) a function to set the preparation time for a restaurant return true is time is updated correctly and false if it is not (think about what inputs the time should not be updates to)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!