Given a point with integer coordinates (x, y) and a compass direction N, E, S, W, print the neighboring lattice point in the given direction. A lattice is a structure in which all points are equidistant away from one another, in this case, each is point is 1 unit away in either the x or y direction. Print the new point in the format (x, y).

Complete the following file:


#include <iostream> #include <string> using namespace std; int main() { int x = 0; int y = 0; string direction = "N";
cout << "(" << x << ", " << y << ")"; return 0; }