Instructions:

Write a Gate class for CarMonitor.java. The files are in HandsonG.zip as a BlueJ package. The Gate class is a class for gates in the campus that monitors the entry and exit of cars. Student or faculty cars may pass through the gates (sticker type = 0 for student, 1 for faculty). A Gate object should know how many cars (for each type) have entered and exited the campus through that gate.

Begin by writing a stubbed class for Gate (add empty methods in the Gate class just to make CarMonitor.java compile); this is worth 40 points of your hands-on grade. Then, implement the methods in Gate.java. Do not revise CarMonitor.java.

When you invoke the execute() method in CarMonitor, this output should appear.

Submit the Gate.java program through the course submission website by 12:20pm.