
Restaurant Order Management System (ROMS)
Problem Case: Create a ROMS system, which is intended to take an order from the customer and charge a bill to the customer.
Creating an Order for the customer
PaymentInterface is an Interface; classes PaymentByCash,PaymentByCard and PaymentBySodexo implement this Interface.
PaymentByCash â?? It will charge a VAT of 5% on the total bill
PaymentByCard â?? It will charge a VAT of 5% plus an extra 2% on the total bill
PaymentBySodexo â?? It will charge a VAT of 8% plus an extra 2.5% on the total bill
Cashier class
In the constructor, populate an instance member of type HashMap containing Payment type as the key and Cashier name (of your choice) as the value.
Write a getCashier method that accepts the payment type and returns the cashier name.
Main Class 1. Create a class ROMS (the base class) and order for 10 menu items of your choice. Invoke a method from PaymentInterface to calculate the bill amount by passing the Order object and Payment type (card, cash or sodexo coupons).
Display the total bill amount to the user and the bill date in mm/dd/yyyy format.
Invoke the getCashier of the Cashier class by passing the Payment Type and display the cashier name.
Write the total bill amount, the cashier name and the bill date on the console.
Note the all inheritance methodology should be followed.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.