Knight attacks everything that is on the board two rows above and one column left or right, two rows below and one column left or right, the right two columns and one row above or below or to the left two columns and one row above or below (in other words Knight attacks all figures are in the shape of the letter "L" in relation to his position). Position of the pieces on the chessboard is determined by letters A to H (x-axis) and numbered from 1 to 8 (y-axis), a chessboard is the first quadrant of the coordinate system. Write a program that will load the position of the knight and the position of some other figures, and to examine whether it is a knight of the attack or not? If it does not attack, it is necessary to print a figure of relative coordinates with respect to the horse.
This can't be the first assignment of the class. You must have done easier assignments before this one.
We're not going to post a full solution -- this isn't a homework service.
If you want help, make an effort on your own first, then post your code and show us what you came up with, and what parts are giving you trouble. If there are problems in your code or if you don't know how to do something, we can help you with it. But you need to have it started first.