Question: PLease, I need help with this Code. PLease create correctly documentations comments for better understanding. This is the input: JAV001 ARRIVE JAV002 ARRIVE JAV003 ARRIVE
PLease, I need help with this Code. PLease create correctly documentations comments for better understanding.

This is the input:
JAV001 ARRIVE JAV002 ARRIVE JAV003 ARRIVE JAV004 ARRIVE JAV005 ARRIVE JAV001 DEPART JAV004 DEPART JAV006 ARRIVE JAV007 ARRIVE JAV008 ARRIVE JAV009 ARRIVE JAV010 ARRIVE JAV011 ARRIVE JAV012 ARRIVE JAV013 ARRIVE JAV014 ARRIVE JAV006 DEPART JAV014 DEPART JAV013 DEPART JAV005 DEPART JAV015 ARRIVE JAV010 DEPART JAV002 DEPART JAV015 DEPART JAV014 DEPART JAV009 DEPART JAV003 DEPART JAV008 DEPART JAV007 DEPART JAV012 DEPART JAV011 DEPART
This is what I have so far:
public class Car
{
private String licenceNo;
private int countOfMove;
public String getLicenceNo() {
return licenceNo;
}
public void setLicenceNo(String licenceNo) {
this.licenceNo = licenceNo;
}
public int getCountOfMove() {
return countOfMove;
}
public void setCountOfMove() {
this.countOfMove;
}
}
************************************************************************
Programming Assignment #2 (Arrays,) 2. The Car class will have private instance variables that atore the license number and number of timea the car haa been moved, and any methods you d1acover to be neccaaary 3. To get credit, your Garage class mast usc an array (not an ArzayList) of C objects to implement the garage. No credit ill be given if you ak the aaaignment I. The Aasignment the B55aSBAA. Parking Garage contains a 51ngle 1ane that an hold up to ten cara. Ariving cars enter the garage at the rear and are parked in the enpty apace neareat to the front Departing cara exit only from the front unneceaaarily more difficult by uaing more than one array 4. Use defined con tant to set the 5ize of the array. Other than in the constant declaration, the literal 10 ahould not appear in your program If a cu8tomer needs to pick up a car that is not neare t to the exit, then all cora blocking 1ts path are moved out temporarily, the customer cars are estored in the ordez they were in originally Whenever a car departs, all cars behind it in the garage are moved 5. To handle the arrival and departure of cach car, your Garage claas must implement separate methods aive) aned depart each of which retur a String ahowing the reault , r driven out nd the other r of the operation (aee above) 6. Your garage elas may centain thethod should you find izte Java program to perate the garage them necessary or advisable 7. Alao write a "tet claas that reada the operationa from the input file, echoes each to the output file, calls the appropziate Garage clas method, and writes the String The program will read and proce55 lines of input from f11e until end-of-file. E ch input line contain a license plate number and an operation (ARRIVE o DEPARTseparated by 3 . Cara arrive and depart In the ord input output file, along with an appropriate message showing the atatus of the operation returned to the output file er apecified by the Each input operation must be "echo printed" to n Astated in . and 6. above, all output 1 to be done in the test class None of the Garage or Ca class methods do any output 9. Make ure your class adhere to th atyle and hen a car rives, the messige will include the licens number and tate whether the car is being parked or turned away because the garage 13 full. If the garage 1a Eull, the car leaves without eve having entered the arage 10. No eredit will be given if you resize the garage array at time. It must be created with a capaci changC Hint: See PartialiyriIed. iava for an excellent examole ohow to use a counter to keep track of the number of When a car departs, the message will include the license number and the number of timea the car as moved class, thi.is how the 122() method of the Ac52 class ia implemented) rhe number of moves does not include the one where the car depar ts from the gara or the number of times the car It i8 an gara 11. or full credit, do not use Sa.5R to move the cars within the garage . Use a loop. (Mo credit will be given if times it wa3m out of the to allOw you uac ax.FOEYRE - aec above) car behind it to depart If a DEPARI operation calla for a car that 1a not in the garage, the 12. As with the previous assigment, thi ne will generate to acparate gradcaone for the program itaelf and the other for the html files generated by axades
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
