Home / Expert Answers / Computer Science / please-write-the-code-in-java-language-nbsp-you-customer-will-select-a-sandwich-and-options-based-pa240

(Solved): Please write the code in java language.  You customer will select a sandwich and options based ...



Sandwiches
Turkey
Roast Beef
Tuna
Vegetable
Options
Lettuce
Tomatoes
Onion
Cheese
Choose One
Rye
White
Wheat
Hard Roll
Uber E

Please write the code in java language. 

You customer will select a sandwich and options based upon the menu above. You will ask how many sandwiches the customer would like. All of the sandwiches will be the same. You will to calculate tax of 7% and a 10% discount on Club members. In addition, if the customer orders a quantity of more than 10 sandwiches, they get a 5% discount before the club member discount. After you print the final receipt, you will ask the user if they want to place another order. If they, do you will start the process over if not you will display a message “Thank you, please come again”.

Requirements: Make sure your program has a comment(s) 

1. Proper use of a switch

 2. Proper use of a Include a Loop 

3. Proper printf or String. format 

4. Proper use of the Scanner Class 

5. Proper Input 

6. Proper Output 

7. Correct Calculations/Process 

Sandwiches Turkey Roast Beef Tuna Vegetable Options Lettuce Tomatoes Onion Cheese Choose One Rye White Wheat Hard Roll Uber Eats Grub Hub Driver Tip $4.85 $6.65 $4.49 $3.25 $0.00 $0.75 $0.25 $1.50 0.25 0.00 0.00 $0.50 $3.25 $2.25 User Input


We have an Answer from Expert

View Expert Answer

Expert Answer


Program code: import java.util.Scanner; class SandwichOrder { //create an instance of Scanner class static Scanner sc = new Scanner(System.in); //method to display sandwich menu, read the option and return public static int selectSandwichOptio
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe