Write a program to coordinate the barber and the customers


Assignment

A barbershop consists of a waiting room with n chairs and a barber room with one barber chair. If there are no customers to be served, the barber goes to sleep. If a customer enters the barbershop and all chairs are occupied, then the customer leaves the shop. If the barber is busy but chairs are available, then the customer sits in one of the free chairs. If the barber is asleep, the customer wakes up the barber.

Write a program to coordinate the barber and the customers.

The application must be submitted as a NetBeans project or Microsoft Visual Studio (VS 2013/VS 2015) project which includes the source codes of your program. In addition to the NetBeans project or Microsoft Visual Studio project, use Microsoft Word to provide ONLY ONE assignment/user-documentation file.

Documentation should include:

• A report which clearly describes the design and description of your software components.

• A logical flow diagram describes the logical flow structure of the application using any diagramming/graphics software such as Microsoft Visio.

• A logical flow diagram for every method, functions, and procedures defined in the application using any diagramming/graphics software such as Microsoft Visio.

• A description of any input files to test the application. (a file with valid data and a file with invalid data)

• A detailed instruction of how the program can be compiled and executed.

• Screenshots of execution sessions processing valid inputs and invalid inputs.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a program to coordinate the barber and the customers
Reference No:- TGS02721921

Expected delivery within 24 Hours