Answered step by step
Verified Expert Solution
Link Copied!

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!

image text in transcribed

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 correct

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Manga Guide To Databases

Authors: Mana Takahashi, Shoko Azuma, Co Ltd Trend

1st Edition

1593271905, 978-1593271909

More Books

Students also viewed these Databases questions

Question

Q.No.1 Explain Large scale map ? Q.No.2 Explain small scale map ?

Answered: 1 week ago