ASAP Java Program
Instructions:
Programming Lab:
Create an interface named Movable with the following methods: moveForward, moveBackward, moveUp, moveDown, and displayCoordinates.
Create a class Jet that will implement the Movable interface as follows:
- The class will have two int fields to keep track of the coordinates (xy).
- The default coordinates will be (0,0).
- An overloaded constructor will allow the user to initialize the coordinates to other values.
- Invoking the method moveForward will add a random int between 1-5 to x, moveBackward will subtract 1 from x, moveUp will add a random int between 1-5 to y, moveDown will subtract 1 from y, and displayCoordinates will display the current coordinates in the format xy.
Create an application JetApp that will test the Jet class and all its methods.
Display the coordinates each time there is a change to them.
Add a comment at the beginning of each file indicating your name, course, and section. For example: //JohnDoeCET3640-OL123.
Submit only your source code, i.e. your .java files.