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...


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.



Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here