SECTION 3 Problem Description Battleship Game be description History battleship was played on a game that con sisted of a pegboard so that you could track where you shops were and the shots you were making into your opponents Teg boarded themselves quite nicely to representation by y So to give you a chance to view all of the program bus such as my, if-else statements and writing cus bommode (function, you will be implement the code that will initiale a battleship game board with a single to ship positioned randomly but legally within the confines of the same board. For example OLTECTIVE Review if he statements 2. Work with a program loop 3. Work with 2D amis 4. Transition to Java's Random number generator 5. Learn and use the showOption Dulog static method from the JOptionPane class 6. Work with static methods and static variables Or You should be able to see that the board should be displayed using Option Pane.show Options Dialog box. The wyntax for this is given Section of this document. If you don't want to bother with a custom con, simply enter nullas antgament where you would have passed the con I will give you a rather large degree of freedom in how you wish to implement this with the few general requirements given below 1. There must be a program loop to generate random boards until the user wants to quite 2. The game board must use a Dantay that is randomly popo- lated with this single ship 3. All methods and variables outside of methods must be static (we will get to non-station enough). You need to learn about both 4. You must adhere to the programming conventioned fied in the evaluation criteria table shown in the next sec tons This first assignment is nife with tra credit potential Do more than one ship of varying length(careful, to over laps allowed) Se the place to start is the pseudocode. And to do that you need to do problem decomposition What are your ins? What does the user need to input? What needs to be processed What needs to be output? Start asking your questions and if you can't awer them me or acmate And you are required to submit you pseudo code in proper pecado code convention along with your source code - Les numbered Proper indentation to show logical structure and resting No programming code allowed everyday ish . Une REPEAT and END REPEAT for Loops Use IF THE OTHERWISE for decisione If you have any questions AS Allow the user to select ship length site or boards SECTION 3 Problem Description Battleship Game be description History battleship was played on a game that con sisted of a pegboard so that you could track where you shops were and the shots you were making into your opponents Teg boarded themselves quite nicely to representation by y So to give you a chance to view all of the program bus such as my, if-else statements and writing cus bommode (function, you will be implement the code that will initiale a battleship game board with a single to ship positioned randomly but legally within the confines of the same board. For example OLTECTIVE Review if he statements 2. Work with a program loop 3. Work with 2D amis 4. Transition to Java's Random number generator 5. Learn and use the showOption Dulog static method from the JOptionPane class 6. Work with static methods and static variables Or You should be able to see that the board should be displayed using Option Pane.show Options Dialog box. The wyntax for this is given Section of this document. If you don't want to bother with a custom con, simply enter nullas antgament where you would have passed the con I will give you a rather large degree of freedom in how you wish to implement this with the few general requirements given below 1. There must be a program loop to generate random boards until the user wants to quite 2. The game board must use a Dantay that is randomly popo- lated with this single ship 3. All methods and variables outside of methods must be static (we will get to non-station enough). You need to learn about both 4. You must adhere to the programming conventioned fied in the evaluation criteria table shown in the next sec tons This first assignment is nife with tra credit potential Do more than one ship of varying length(careful, to over laps allowed) Se the place to start is the pseudocode. And to do that you need to do problem decomposition What are your ins? What does the user need to input? What needs to be processed What needs to be output? Start asking your questions and if you can't awer them me or acmate And you are required to submit you pseudo code in proper pecado code convention along with your source code - Les numbered Proper indentation to show logical structure and resting No programming code allowed everyday ish . Une REPEAT and END REPEAT for Loops Use IF THE OTHERWISE for decisione If you have any questions AS Allow the user to select ship length site or boards