At Westonci.ca, we provide reliable answers to your questions from a community of experts. Start exploring today! Our platform provides a seamless experience for finding reliable answers from a knowledgeable network of professionals. Our platform offers a seamless experience for finding reliable answers from a network of knowledgeable professionals.

A local pizza parlor provides pizzas in the following sizes: Small, Medium, or Large. Customers also have a choice of a maximum of five toppings that can be added. If the user enters a value greater than 5, an appropriate message should be shown alerting the user and allowing them to re-enter the value. A delivery fee of $500 is charged as a flat rate, this is only applied if the pizza size is not large. The user is required to pay a tax of 16.5%. The program must print the sub-total, taxes, the amount of money the customer is required to pay based on the order given, and change to be tendered, and the name of the Cashier . Your program is to execute as many times until the user presses X to exit. Use Appropriate FUNCTIONS are part of your solution.




Now the cost per pizza is calculated as follows:



pizza_cost = base_price + ( number_of_toppings * cost_per_topping ) + delivery cost + taxes