Professional Documents
Culture Documents
Create a class named “tiffin”, which can hold the unique item number (int), the name of
the item (char, max size 10), cooking time (float), batter type (int), cooking cost (float), final
price ( cooking cost, 50% profit and tax included ).
The class should contain a static data “tax”, which is the food tax (10%).
1. Write the default constructor that assigns 0 to all variables except the item name (char
type). The default name of the item name is “noname”.
The constructor should also print “Item created”
a. A function that reads the input variables and also calculates the final price.
b. A function that prints the output variables, separated by space.
INPUT (Item number, item name, batter type, cooking time, cooking cost)
Item created
Item created
Item created
0 noname 0
0 noname 0
0 noname 0
1 idly 9.6
2 dosa 20.8
3 wada 25.6
Item deleted
Item deleted
Item deleted