Question: Hi, I need help with this question using C programming, not C++. Thanks Question (100 marks) The Domino Pizza Shop specialised in selling pizzas in

 Hi, I need help with this question using C programming, not

Hi, I need help with this question using C programming, not C++.

Thanks

Question (100 marks) The Domino Pizza Shop specialised in selling pizzas in ELM Street. The pizzas sold are in two different sizes - Regular, and Large. Customers can either Eat-in or Take-away. A 10\% discount is given to customers who decide to take-away. The price for a Regular pizza cost RM10.00, and a Large pizza costs RM18.00 You are employed by the shop owner to write a C program that will compute the total pizza sales for the day. The program must allow the user to enter the pizza type follows by the quantity, as well as whether it is Eat-in or Take-away. It then calculates and displays the total cost for the customer. Only one type of pizza is to be considered in each sale. At the end of the day, the total amount collected and the number of Eat-in and Take-away will be displayed. You may assume that the user will always enter valid character, and thus you don't have to do any validation for this program. The following shows a sample run of a correctly implemented program: Enter pizza type (R, or L),Q to quit: R Enter quantity? 2 Eatin or Takeaway?E For Eat-in of 2 pizzas of size ' R ', the cost is RM 20.00 Enter pizza type (R, or L), Q to quit: R Enter quantity? 2 Eatin or Takeaway?T For Take-away of 2 pizzas of size ' R ', the cost is RM18.00 Enter pizza type (R, or L), Q to quit: L Enter quantity? 5 E>atin or T ake-away? T For Take-away of 5 pizzas of size 'L', the cost is RM81.00 Enter pizza type (R, or L), Q to quit: Q Total sales = RM119.00 Number of Eat-in =1 Number of Takeaway=2 When the user enters Q (or q) for the pizza type the program should take this to mean that no more data need to be processed and terminate after showing the final report as shown above. The calculation of the cost of the pizzas for each customer will require the use of a return function. Use a void function to display of the daily sales and the number of eat-in/take-away

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!