Question: C++ II D) Create a cpp program (named Billing then create the following objects and display the objects based on the Instruction below. Create a
D) Create a cpp program (named Billing then create the following objects and display the objects based on the Instruction below. Create a Food object named item1 using its default constructor. Use set method to assign the following values, 1, Dine-In, Appetizer, Fried Caramari, 1, and 6.95 to order number, order type, food type, food name, quantity and price respectively Create a Food object named item2 using its constructor with six parameters. Assign the following values, 1, Dine-in, Entree, Grilled Salmon, 2, and 15.99 to parameters, order number, order type, food type, food name, quantity and price respectively Create a Drink object named item3 using its constructor with five parameters Assign the following values, 1, Dine-in, Coke, 3, and 1.95 to parameters, order number, order type, drink name, quantity and price respectively . Display billing summary by using get methods and subtotal methodas sh search
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
