Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please make classes Assignment: In this programming assignment, you're going to create a Java application to take burger orders for a store called BobsBurger. A

image text in transcribed
please make classes
image text in transcribed
image text in transcribed
Assignment: In this programming assignment, you're going to create a Java application to take burger orders for a store called BobsBurger. A menu will appear that will allow a customer to select options to customize the burger and choice for delivery or pickup. The customer will be asked to pick between delivery or pickup for the order. Use 1 for pickup and 2 for delivery. If the customer picks the order to be pickup, then a menu will appear to choose a store where the order will be picked up. If the customer picks the option for delivery, then the customer needs to provide a full name, address and a phone number After getting all the needed information, the program should start allowing the customer to customize the burger order. It should let the customer pick the meat from a list. After that, it should ask the customer for the cheese and veggies to put on the burger like lettuce, tomato, onion, avocado, etc. The customer can only pick one veggie once. A message should display "The veggie has been selected. Please choose a different one or quit" if the user tries to choose the same veggie twice. However, the user can pick all 6 veggies if he/she wants to. And the user can only quit the menu after that if all veggies have been selected. If the user selected "no veggie (sauce)" after selecting some veggies (sauces), the previously selected one would be erased (See test run #4). Price To calculate the cost, please refer to the following table: Meat beef $5.00 chicken $4.00 fish $6.25 For veggies, charge $1.00 for each added one. Sauces and cheese are free of charge. The tax rate 8% is added after the delivery charge which is 20% of the order cost Once the customer has customized the burger, a summary of the order should be displayed The summary should include the customer information if it's a delivery and subtotal of the order, delivery charge and the total cost. If the customer chose to pick up from a store, then the summary will show the location address, the subtotal and the cost of the order = Choose your veggies fron the list above: Selected veggies: lettuce tomato onion Choose your veggies from the list above: Selected veggies: lettuce tomato onion pickle Choose your veggies fron the list above: Selected veggies! lettuce tomato onion pickle Sauce Menu: 1-ketchup I 2-mustard 3-mayo 4-ranch 5-thousand - island 6-no sauce 7-quit the menu Choose your sauce from the list above: 1 Selected sauces: ketchup Choose your sauce from the list above 2 Selected sauces: ketchup mustard Choose your sauce from the list above Selected sauces: ketchup mustard nayo Choose your sauce from the list above! Selected sauces: ketchup mustard wayo Order Summary You ordered a beef burger, with oneric cheese and lettuce tonato onion pickles the veggies and ketchup mustard maye as the sauces. This is pickup order, the pickup location is 201 street de City State Subtotal: 39.00 TAXI 50.72 Total: $9.72 Your order with be ready in 15 winutes. See you later

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Database Relational Model A Retrospective Review And Analysis

Authors: C. J. Date

1st Edition

0201612941, 978-0201612943

More Books

Students also viewed these Databases questions

Question

LO1 Understand risk management and identify its components.

Answered: 1 week ago