Using the class from the previous exercise, create an application
Skipper with which the ship can be driven.
The keyboard user interface is as
follows (the interface is slightly clumsy, because each
command must be given with the return key):
- 1 turns the ship to the left, the user is asked for the degrees
- 2 turns the ship to the right,
the user is asked for the degrees
- 3 controls the speed, the user is asked for the new speed.
- All other numbers end the drive.
After each operation, the program prints the state of the
ship.