Program 3: The Egg Sandwich Shop

Due: 03/30

The purpose of this exercise is to create a program that allows the wait staff at The Egg Sandwich Shop to easily calculate a customer’s total bill with tax based on their menu selection. The menu should include:

  • Drinks: Coffee, Tea, Hot Chocolate, Milk, Juice (customer can select multiple options)
  • Eggs: Scrambled, Over Easy, Sunny Side Up, Poached (customer can select ONLY one option)
  • Extras: Cheese, Bacon, Sausage, Ham, Veggies (customer can select multiple options)

Drinks are $2.25, each egg order is $6.95 and any extras are $1.50 each. Make sure to calculate the total bill, showing the sub-total, tax, and total with tax as separate line items.

In this exercise you will:

  • Create an algorithm
  • Add controls to a XOJO Form
  • Declare and Assign values to variables and use a Constant Variable
  • Practice Decision Making concepts and Controls
  • Use If Statements and relational operators
  • Use RadioButtons and Checkboxes to intake information
  • Use a Listbox to Output Information

Instructions:

  • Before you code: Create the algorithm
    • Identify your inputs
    • Identify the steps in your process
    • Identify your outputs
  • Create new XOJO Desktop Application named ‘TheEggSandwichShop’ and save it to your local folder
  • Design your form adding the necessary controls. Play with the control properties to change colors/backgrounds.
  • Write the code to calculate the customer’s total bill based on the options selected.
  • Output the contents of the customer’s order along with the sub-total, tax and total with tax to a listbox.
  • Spruce up your form by adding a relevant image.
  • Make sure to add clear and exit buttons.
  • Save All, Compile and run your program
  • Upload the completed assignment to GitHub classroom.

Accept the Assignment