Reference no: EM133256643
Assignment description
In this lab assignment, you will create a small menu-based application for a restaurant named "Hamilton Hamburgers." You will implement the basic Java concepts such as decision-making structures, looping statements, strings, and exception-handling mechanisms.
o ELO 1. Solve processing problems in Java using the Input-Processing-Output model.
o EOP 1.1. Describe Java's primitive data types.
o EOP 1.2. Compare primitive data types to reference data types.
o EOP 1.3. Explain the importance of typecasting and promotion.
o EOP 1.4. Use correct Java Syntax to get input from standard input, process it using basic arithmetic and String operations, and output the result to standard output.
o EOP 1.5. Use Java arithmetic expressions, Boolean expressions, selection statements. and repetition statements to solve basic computing problems.
o EOP 1.6. Use arrays to solve basic computing problems.
o EOP 1.7. Use exception handling techniques to recover from run-time errors gracefully.
To complete this assignment, compile and execute the following Java program:
1 Review the rubric to understand the expectation of this assignment.
2. Print the name of the restaurant at the top.
3. Print the following menu for Hamilton Hamburgers:
|
Type of Burger
|
Price
|
1.
|
Veggie Burger
|
35.95
|
2.
|
Deluxe Veggie Burger
|
$7.95
|
3.
|
Chicken Burger
|
$6.45
|
4.
|
Cheese Chicken Burger
|
38.50
|
5.
|
Cheese Bacon Burger
|
$9.25
|
6.
|
Deluxe Bacon Burger
|
$10.95
|
7.
|
Healthy Organic Burger
|
312.45
|
8.
|
Quit
|
|
4. Ask the user to select the items from the menu using numbers (1 to 8).
5. Add an exception if the customer is selecting any other option apart from 1 to 8 OR not selecting any option.
6. Ask for the quantify after each item is selected.
7. Once the selection is done. the user needs to press 8 to quit.
8. Find the total price after multiplying each quantity by their price.
9. Add 13% tax to the total amount.
10. If the bill is more than S50. then apply a 5% discount to the users order.
11. If the bill is more than 5100. then apply a 10% discount to the users order
12. Take the order from 5 different customers using loops.
13. Print the total billing amount and take a screenshot for each order.
14. Download the Assignment 1 Student Template and add the screenshots to the template.
15. Export all Java codes into a zip file.
16. Submit the zip file and the Assignment 1 Student Template to this Submission Folder using the following naming convention