Question: Please write program in C++ Mini Project You are opening a new trendy pizza shop where customers can buy, not only circular pizza, but also

 Please write program in C++ Mini Project You are opening a

Please write program in C++

new trendy pizza shop where customers can buy, not only circular pizza,

Mini Project You are opening a new trendy pizza shop where customers can buy, not only circular pizza, but also square and hexagonal pizzas. Write a program incorporating the following functions with appropriate parameters, pass by reference). The price of the pizza is based on the area of the pizza, tax and the service charge. The program continues to run until the customer chooses to exit from it. Function Description main() contain function calls for the following functions. mainMenu() display the main menu; customers may continue or exit the program at this stage. Use appropriate loop. Do you wish to continue with your order or quit? rder uit getData() Get the customer's details, such as name, address and mobile number. Get the pizza type and dimension from the customer. Type: ircular / quare / exagonal Dimension (in inches) c- diameter of circular pizza s-length of one side of square pizza h-length of one side of hexagon pizza circular square hexagonal h S calc Areal calcPricel) calculate the area of the selected pizza type, based on the dimension given (c/s/h) calculate and display the price of the pizza. Add 2.5% as the government tax and 5% as the service charge. Pizza (circular) 12" 22.63 Govt. tax (2.5%) 0.57 Serv. charge (5%) 1.13 Amount Due 24.33 RM RM RM RM (Price per unit of pizza is RM 0.20 per square inch.) show Balance() get and display the amount paid by the customer. display the balance amount in terms of the various dominations. Amount Paid Amount Due RM 50.00 RM 24.33 Balance RM 25.67 RM 50. .0 RM 20. 1 RM 10. 0 RM 5. 1 RM 1. 0 50 sen. 1 20 sen. 0 10 sen. 1 5 sen.. 1 1 sen.. 2 write the details (customer's name, pizza type and dimension, total price) to a file called pizza.dat writeToFile()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!