Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in c++ coding create a class called order as the following with the main function to test and Run the code The Order class contains

in c++ coding

create a class called order as the following with the main function to test and Run the code

The Order class contains all the details about the order including:

  • - OrderID

  • - TableNumer

  • - Ready: Indicates whether the order is done by the chef and ready to be delivered.

  • - Ordered_food: The type of food being ordered.

  • - Delivered: Indicates whether the order has been delivered to the table or not.

The Order has the following:

  • - A Default Constructor setting the ID, Ordered food to empty strings, The delivered and ready status to false, and the TableNumber to -1.

  • - A Parameterized Constructor indicating the order details assigned by the user in the main.cpp And assigns delivered and ready to False.

  • - MarkDelivered() This function marks a given order as delivered. This function may be used to in conjunction with DeliveredOrders() in the waiters class.

  • - IsDelivered() Returns true if the order was served to the customer. This function may used in conjunction with CheckDelivered() function in the Waiter's class.

  • - IsReady() Returns true if the order was marked ready by the chef. This function may be used in conjunction with CheckReady() function in the Chef class.

  • - MarkReady() Marks the order as ready to be served by the waiter. This function may be used in conjunction with CookedOrders() in the chef class.

  • - OrderDetails()

    Prints the details of the order. It interacts with the user in a friendly way to get the users order details.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

3. What strategies might you use?

Answered: 1 week ago

Question

3. Write a policy statement to address these issues.

Answered: 1 week ago