Savour Foods Known for its taste and affordable price, Providing Quality and hygienic food. Suppose you are working as a programmer in Savour Foods. CEO of Savour Foods assigned a task to you to develop a system which can manage the customer’s orders in efficient way. You have to write a oop c++ program to  create a class named Savour contains  Two data members i.e. the order_no and the price of item(s) served by  A no-argument constructor to initialize both data fields with default values of “ord#0”, 0.0  A parameterized constructor to initialize all data fields with user-defined values Derive a class named SavourStaff from the class Savour that holds the following:  Two data members’ i.e. o servicecharge, o the tableNumber to which the service has been made  A function named totalCharges that returns total cost of an order (including servicecharge + price of item(s) served)  A parameterized constructor, which requires arguments for all of its own data fields as well as for the data fields of base class  A member function named show ( ) to show all the details of an order including order_no , price, and totalCharges  In the main( ) function, instantiate an object of class Savour object and test the implementation of both classes through this object.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter12: Adding Functionality To Your Classes
Section12.2: Providing Class Conversion Capabilities
Problem 6E
icon
Related questions
Question

Savour Foods Known for its taste and affordable price, Providing Quality and hygienic food. Suppose you are working as a programmer in Savour Foods. CEO of Savour Foods assigned a task to you to develop a system
which can manage the customer’s orders in efficient way. You have to write a oop c++ program to  create a class named Savour contains
 Two data members i.e. the order_no and the price of item(s) served by
 A no-argument constructor to initialize both data fields with default values of “ord#0”, 0.0
 A parameterized constructor to initialize all data fields with user-defined values
Derive a class named SavourStaff from the class Savour that holds the following:
 Two data members’ i.e.
o servicecharge,
o the tableNumber to which the service has been made
 A function named totalCharges that returns total cost of an order (including servicecharge + price of
item(s) served)
 A parameterized constructor, which requires arguments for all of its own data fields as well as for the
data fields of base class
 A member function named show ( ) to show all the details of an order including order_no , price, and
totalCharges
 In the main( ) function, instantiate an object of class Savour object and test the implementation of both
classes through this object.

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
ADT and Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning