Question: Design and implement a system for customer to purchase items from bakery using queue. There will be 2 windows in the bakery. (1 for males

Design and implement a system for customer to purchase items from bakery using queue. There will be 2 windows in the bakery. (1 for males and 1 for females) Bakery have the following items (cakes, rusks, biscuits) Every window can accommodate 5 users. Queue is attached with every window. User can get the window no after entering the shop by entering their name and gender. If both windows have 5 customers than customer have to wait and added to another waiting queue. Whenever users is exit than the waiting user can get the window no. Customer can buy any items from the given bakery item list on his/her turn. After buying item system should show customer bill also. System should show count and peek of every queue whenever user enter or exit. write java code

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!