Question: Using python write a program that has a class called MenuItem object represents a menu item to be offered for sale at the lemonade stand.
Using python write a program that has a class called MenuItem object represents a menu item to be offered for sale at the lemonade stand. It has three private data members:
a string for the item's name
a float for the item's wholesale cost how much the stand pays for the item
a float for the item's selling price how much the stand sells the item for
The Menu Item methods are:
init method takes three parameters name wholesale cost, selling price and uses them to initialize the data members
get methods for each of the data members: getname getwholesalecost and getsellingprice
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
