Question: Java: Prompt the user to enter a column and row. ( Columns are A through J . Rows are 1 - 9 ) . Your
Java: Prompt the user to enter a column and row. Columns are A through J Rows are Your goal is to ask to user to choose a column and row and then display whether they hit or missed. Whether the ship has been sunk or not
The name of the program should be Assignment
comment lines description of the program, author, and date
Ship should now be a class. The Ship Class should have subclasses: aircraft carrier spaces battleship spaces cruiser spaces submarine spaces and destroyer spaces
A ship of each type should be placed randomly on the grid not just one.
o Ships cant occupy the same space.
The program must display when the user sinks a ship.
The user can continue to guess positions on the grid until they miss times, or all ships have been sank
Once the game ends ask the user if they want to play again. If they want to play again, repeat the game.
Otherwise, end the program
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
