This entry was posted on Saturday, October 31st, 2009 at 7:51 am and is filed under PCB FAQ. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
program to bill the pizza ordered by you
Pizza consist of veg and non-veg pizza
Pizza size is small,medium and large
pizza type is
Veg :a. pizza with capsicum and butter toppings which is identified as PCB
b. pizza with tomamto and potato toppings - is identified as PTP
Non-Veg :a. pizza with chicken toppings - PCT
b. Pizza with Mushroom and Egg Toppings - PME
Rate for each pizza is
Veg Large : 120
Veg Medium is 75
Veg small is 50
Non Veg Large : 200
Non Veg Medium : 100
Non Veg Small : 75
Store these values in approprite arrays
Accept Input of Pizza Type,Pizza Category,Pizza Size and quantity till user enters ‘N’ and finally display the Bill Datails with the total amount he has to Pay.
October 31st, 2009 at 10:16 am
This is a pretty simple homework assignment. Start by declaring a suitable data structure for the pizza prices, e.g. an array. Then implement the logic for ordering and pricing pizzas. If you hit any specific problems then come back and ask for more help.