Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Scenario A family - run caf , serves freshly cooked hot meals, hot / cold sandwiches, daily starters and desserts, including hot / cold drinks

Scenario A family-run caf, serves freshly cooked hot meals, hot/cold sandwiches, daily starters and desserts, including hot/cold drinks from the menu. There are 2 waiters serving 8 tables for dine in and staff are allocated to tables to serve dine in customers as shown in Table 1. Customers can order collections and takeaways, and these are allocated to Table 0 for easy identification. All prices include VAT. Typical orders taken are as shown in Table 2. The owner would like a computer program to manage the orders and payments effectively. Please use sample values provided in Table 1, Table 2, and Table 3. Typical menu items used for orders are provided in Table 4. Requirements: You are being asked to create a working Java programme in stages (Design, Code and Test) to meet the following requirements: 1) The programme should have the following three options as part of the menu. a) Place order. b) Display invoice. c) Exit 2) The menu should be displayed after each option is executed to enable suitable user choice (looped menu). a) Only valid entry choice for Exit should end the program. 3) The programme should take user input from keyboard for the choices and data entry. Validate user inputs to avoid errors. 4) The programme should employ only fixed arrays where necessary dynamic arrays (i.e. ArrayList, vector, HashMap, etc.) are not to be used. 5) Additional suitable entries to be created for Table 2 as indicated. 6) The program should display the final invoice as displayed in 7) Table 3.8) The menu data does not need to be stored in the program. However, values for creating an order entry should be taken from menu items provided in Table 4.
Table 1. Table allocation. Table# Staff 0 Kiran 1 Sam 2 Jill 3 Jill 4 Sam 5 Jill 6 Sam 7 Sam 8 Jill Table 2. Typical items ordered. Order# Table# Item# Name Qty Price Comment 101195 Pop drink 22.35 Pepsi, No ice 102221 Jacket potato 13.20 with beans 103055 Lasagne 16.95 with cheese 103061 Mac&cheese 12.20103081 Choc brownie 12.55104391 Tea (pot)12.992 empty cups 105492 Coffee 32.50 White, no sugar 101133 Bacon Egg Cheese 13.75101149 Veg burger 14.95102295 Pop drink 12.35 Lemonade 104351 Steak Ale pie 16.95105445 Egg Mayo baguette 12.95.
Table 3. Sample receipt for Order# 101 Order# 101 Table# 2 Date: 1-Oct-2023 Staff: Jill Item# Name Qty Price Sub-total 95 Pop drink Pepsi (no ice)22.355.9833 Bacon Egg Cheese sandwich 13.753.7549 Veg Burger 14.954.95 Total 13.4 VAT (20%)2.23 Net amount 11.17=[(1+)]=13.4[0.2(1+0.2)]=2.233.
Table 4. Typical menu items Menu Soup of the day (11) Sweet corn 1.99(12) w/ chicken 2.35(13) Cream of Tomato/Mushroom 2.10(14) Veg soup 2.25 Baked Potato w/ filling (21) Baked Beans 3.20(22) Cheese 2.50(23) Tuna 3.75(24) Coleslaw 2.75 Toasties (31) Cheese 2.25(32) Ham & Cheese 3.20(33) Bacon Egg Cheese 3.75(34) Sausage Egg cheese 3.55 Baguette (41) Ham&Brie 3.75(42) Grilled Chicken Mayo 3.25(43) Prawn salad 3.95(45) Egg May 2.95(46) Tuna sweetcorn 3.29 Burger (47) Chicken 5.65(48) Hamburger 5.75(49) Veggie 4.95 Main Courses (51) Steak & Ale Pie 6.95(52) Fish & chips 7.95(53) Breaded Scampi w/ fries 6.95(54) Chicken pasta 6.79(55) Lasagne 6.95 veg 5.25(56) Spaghetti Bolognese 5.99(57) Hotdog w/ fries 3.50 Kids Menu (60) Chicken nuggets 2.55(61) Macaroni Cheese 2.20(62) Pigs in a blanket 2.95 Sides (71) French fries S 2.50 L 3.50(72) Onion rings S 2.99 L 3.99(73) Garlic bread 2.99(74) Nachos cheese/guac/salsa 2.25 Desserts (81) Chocolate cookie 2.10 brownie 2.55(82) Cheesecake (Vanila/Lemon)3.99(83) Pie (Apple/Cherry)2.25(84) Pancakes (2)2.99 Drinks (91) Tea cup 2.10 pot 2.99(92) Coffee 2.50(93) Cappuccino 2.75(94) Hot Chocolate 2.95(95) Pop Fanta/Pepsi/Cola/Lemonade 2.35(96) Sparkling Water 1.75.
can you do the flow chart for me

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_2

Step: 3

blur-text-image_3

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

Database And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 2 Lncs 13427

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124251, 978-3031124259

More Books

Students also viewed these Databases questions