You are on page 1of 2

INTERVIEW SYSTEM..

Algorithm on behalf of Candidate case: Case 1: If(interviewer reads magazine) State of the candidate: wait( while finishes current page of the magazine) Case 2: if(interviewer sleeping) Candidate wakes him up;interview processed; Case 3:while(interview is running) Case I:candidate goes to waiting room Case II:candidate waits for his turn Case III:if (chair!=free) The candidate leaves

ALGORITHM ON BEHALF OF INTERVIEWER CASE:


Step 1:Interviewing candidate For(Candidate=1;candidate<=max;interview++) Processing interview; Step 2:Finishing interview Candidate=0;interview=0 Step 3: [subcase 1] Step I:checking waiting room While(candidate !=0) Case1:Interview runs; while (candidate=0) case2: reading unfinished magazine; case3: read new magazine

while(reading magazine=0) case4: sleep; Subcase 2: While(candidate=0) Case1: reading unfinished magazine; Case2: read new magazine while(reading magazine=0) case3: sleep;

------x----------------all the students are hereby instructed to change the algorithm with proper modification that you can think, as because at the time of interview they will ask your idea and opinion.x

You might also like