Question: C++ Assignment: Restaurant Ordering Program First create an abstract base class called menuItem. This will have an attribute of name, a method getName, abstract method

C++ Assignment:

Restaurant Ordering Program

First create an abstract base class called menuItem. This will have an attribute of name, a method getName, abstract method getPrice, and abstract method toString (which returns a string with the item name, description, and price).

Create subclasses (all of which extend from menuItem) for:

1. Pizza personal - $5.99 medium - 8.99 large - 12.99 family - 14.99

2. Sandwiches 6 inches - 6.00 footlong - 9.00

3. Appetizers wings tradititional - 0.60 per wing boneless - 0.70 per wing each wing order will have type and quantity; no mixing

bread cheesy bread - 7.99 garlic bread - 6.99

Create a menu driven program that will allow the user to add menu items (pizza, sandwiches, wings, and breads) to an order (use only one data structure to hold your order items). Add at least one item from each category to your order and then print out the list of items ordered (name, description, and price). Display the number of items ordered and the total price.

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!