Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Need help with this little assignment using Java language. Taking a programming class because of my minor. Im stuck need help, thanks! Aim: Write a
Need help with this little assignment using Java language. Taking a programming class because of my minor. Im stuck need help, thanks!
Aim: Write a simple stand-alone Java program from scratch. Simple geometrical reasoning is at the core of Battleships. One important notion is adjacency, with two sub-types: edge adjacency and corner adjacency. For example, the square (4,3) is edge-adjacent to the square (3,3), it is corner-adjacent to the square (3,2), and it is not adjacent to the square (6,7). Write a program that reads a square from the user, and prints out three lists: 1) a list of all edge-adjacent squares, 2) a list of all corner-adjacent squares, and 3) a list of all squares which are not adjacent at all Our version of battleships is played on a 9 by 9 board. The lo As noted, the program will read from the console a shot specification. You can decide which formats to handle. They may include, for example, specifications like ft square is (0,0). (5,5)30 4,1 a7 b 2 An A-level program will handle answers, be clearly written, and be well designed. all the input formats illustrated output correctStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started