You are to create a point of sale (PoS) system for a bakery with the following menu:

Donuts ------------------------- $1 each or $6 / dozen
Sheet Cakes -------------------- $8 each
Funnel Cakes ------------------- $3.50 each
Cupcakes ----------------------- $1.25 each or $4 for 6

Your application should:

  • Greet the user and present the menu above.
  • Take in a menu selection and ask the user for a desired quantity of the selected item.
  • Present a pre-tax subtotal after each addition to the total bill.
  • Present the user with an option to finish the order and pay.
  • Once the user selects to pay the bill, a 7% sales tax should be added to the bill.
  • The user should be presented with an itemized list of their transaction including a line item for tax.
  • The user should be prompted to leave a 5%, 10%, or 15% tip.
  • Once complete, the program should print the final total of the bill including selected items, tax, and tip.
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.