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
reseve 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 nuber printed for the each name.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Java Related AllOther Interview Questions

How do I run a project in netbeans?

0 Answers  


What do you mean by exception handling?

0 Answers  


What is interceptors in java?

0 Answers  


Are jvm’s platform independent?

0 Answers  


How can one prove that the array is not null but empty?

0 Answers  






What is a bean class?

0 Answers  


program A and B are analysed and found to have worst case running time greater than 150NlogN and N*N respectively. which program has the better guarantee after the running time for the large values of N(N>10000)? which program has the better guarantee for the running time of small program N (N<100)? which program will run faster on average for N=1000?

0 Answers   St. Pauls University,


What kind of thread is the garbage collector thread?

0 Answers  


What gives java it’s “write once and run anywhere” nature?

0 Answers  


How can I check single byte, double byte of character in JTextField?(eg. japan unicode and English unicode)

0 Answers  


How do I install jdk?

0 Answers  


why is java not 100% oops?

5 Answers   IBM,


Categories