Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The function should have a class name CPizza that will have 3 constructors (default, type, copy), any public function you feel is necessary (open ended),

image text in transcribed

The function should have a class name CPizza that will have 3 constructors (default, type, copy), any public function you feel is necessary (open ended), and private member variables. There should be private data members for the three different sizes of pizza (Large, Medium, and Small), cost, a bool delivery, name, and delivery fee. The price of the pizzas are $20, $15, and $10 for large, medium, and small respectively, The cost should include the sales tax of 7,75% and a delivery fee if applicable. The delivery fee is $5 and remember it is nontaxable The most important thing is to have main do the following code to invoke the three constructors successfully CPizza order1; /I defauit constructor CPizza order2(2,1,3); type constructor for large, nediun, and small pizza CPizza order3 (order2): copy constructo /l prompt the user for erders intermation /I display completed order Get all three files (main.cpp, cpizza.h and cpizza.cpp) together in a multi-module project so it will build and run. Let me know if you have any questions fles (main.cpp. cpizza.h and cpizza.cpp) together in a multi-module project so it will build and run. Let me know if you have any questions! pe here to search

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_2

Step: 3

blur-text-image_3

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

Database Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions

Question

Different formulas for mathematical core areas.

Answered: 1 week ago