Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.
Sapient C Question
there are 67 seats in train . there are only 5 seats in a row and in last
row there are only 2 seats.
One person can receive only 5 seat at a time.
If person reserving seat , the care is atken that he may get all in row. if
seats are not available in row then the arrangement is so that person group
get nearby seats.
the following class is given
public class seat
{ char name; int seat; boolean isSeatempty }
1.Draw require class digram and object diagram.
2.Write function seatallot(int noofperson)
to allocate seat with seat number printed for the each name.
Related Answered Questions
Related Open Questions