Question: Implement a wystem simulating a ferry boat that makes trip with everal op The Sylucaly one opening on the front, which is for embarking and
Implement a wystem simulating a ferry boat that makes trip with everal op The Sylucaly one opening on the front, which is for embarking and making and motorbike The lower deck of the ferry is more for parking. It is bonesboe-shaped, menting that the making get in through the opening drive along the lower deck until the end find the facing the opening from the inside. The lower lock is very Oo the cast are in the same order they got in fact in the middlel to disembark och cat in front of it will be the lower deck and rester it immedintly from the making de The upper deck is for parking motorbike It is straight and writy towing that the fine motorbike to set in is the last one to get out. In case a torbike in the middle has to disembark, the motorbikes standing in front of it are ray stored in the deck, the moved back to the upper deck sach that they we in the enders before In the text of the ci, it is not specified whether you have to Stackor Qurbe to impro the lower Deck the perdeck, and the saneuver Deck You choose which of the two once types is the table or by replacing Segons with Stack or Qose in your implementation. Only w the methods described in the Data Structure Sour Section above Cars and Motorbikes are both model as a Sering control the license plate Do not forget to replace car and motorbike with the respective licetuse platen in the test you peitt. 1. Create a new Java project and preci in it you should not be problemas doing this by now, if you have troubles take a look at the previous shoes) 2. Create a class Ferry containing the following (a) a private attributeSequence
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
