Instructions:
Programming Lab:
• Create an interface named Movable with the
following methods: moveForward, moveBackward,
moveUp, moveDown, and displayCoordinates.
• Create a class \texttt{Jet} that will implement the Movable
interface as follows:
• The class will have two \texttt{int} fields to keep track
of the coordinates (x, y).
• 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 \texttt{int} between 1-5 to
x, moveBackward will subtract 1 to
x, moveUp will add a random \texttt{int} between 1-
5 to y, moveDown will subtract 1 to y,
and displayCoordinates will display the current
coordinates in format (x, y).
• Create an application \texttt{JetApp}, that will test
the \texttt{Jet} class and all its methods.
• Display the coordinates each time there is a
change to them.
• Add a comment at the beginning of to each file
indicating your name, course, and section (e.g.
//John Doe, CET 3640-OL123)
• Submit only your source code (i.e. your \texttt{.java} files).