Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

MongoDB Applied Design Patterns Practical Use Cases With The Leading NoSQL Database

Authors: Rick Copeland

1st Edition

1449340040, 978-1449340049

More Books

Students also viewed these Databases questions