HP Summer Training 2012 (NOIDA) Batch: Dot NET: Online Assignment
HP Summer Training 2012 (NOIDA) Batch: Dot NET: Online Assignment
Online Assignment
A parlour shop have three professionals to service their customers but customers frequency is quite higher. This application is required for them to analyze how many customers are returned without being serviced by shop and how many has got service.
Input/Output Specification
Input Specs
Your program must input a string from user that provides you the input details. Input is a string that gives you details about customers who comes and go out.
Sample Input:
string customersDetails= ABCDAEFBGHCIJKDEF
Here input string represents customer arrival and departure for example in this list in an alphabets comes that means customer arrived and if the same ABCDA says that A has arrived first and then B and then C and then D and alphabet comes again that means customer departed for example input after that A departed. As we know there are only three professionals thats why
only A,B,C can only get service and D have to wait and D Can only get service after someone in A,B or C has departed. And on this basis we are required to count how many customers got service and how many did not get service. for example
if a user input is
Customer Not Got Serviced = 2 *A customer is counted as serviced when customer is out of the parlour if a customer is not out of parlour then it counted as not serviced.