Question: can you guys also write comment so i know what the code is doing? im new to coding and this is really complited for me

 can you guys also write comment so i know what thecode is doing? im new to coding and this is really complitedfor me to do. Please and thank you. Program Description: In thisproject, you will write a C++program that simulates a modificd version ofthe board game Battleship In this implementation, there is only one player

can you guys also write comment so i know what the code is doing? im new to coding and this is really complited for me to do.

Please and thank you.

Program Description: In this project, you will write a C++program that simulates a modificd version of the board game Battleship In this implementation, there is only one player who tries to sink three ships (Destroyer, Submarine, and Battleship) that were randomly placed in a 6x6 grid (ocean by the computer lementation To receive credit (80%) for the basic implementation for this project you must meet the design specifications detailed below Improved Implementation (20 [10%): Expand the grid to 8x8 and include Cruiser -la l 4 ini . " I * and Aircraft Carrier. The Cruiser takes three positions and the Aircraft Carrier takes five. For lllII this option, your 8x8 grid should look like [5%]: Improve the user interface by utilizing the system( "PAUSE") and system("CLS") . S. [596]: Create a header file (h) and separate source files (.cpp) for each of your functions Design Specifications: 1) The program should first create the 6x6 grid (ocean) and place the three ships somewhere within this grid. The program should randomly select both the orientation (i.c. vertical or horizontal) and location for each ship. The Destroyer takes two positions, whereas the Submarine takes three and the Battleship takes four. Be sure that the location selected permits the placement of the ship into that location and that the ships do not overlap Program Description: In this project, you will write a C++program that simulates a modificd version of the board game Battleship In this implementation, there is only one player who tries to sink three ships (Destroyer, Submarine, and Battleship) that were randomly placed in a 6x6 grid (ocean by the computer lementation To receive credit (80%) for the basic implementation for this project you must meet the design specifications detailed below Improved Implementation (20 [10%): Expand the grid to 8x8 and include Cruiser -la l 4 ini . " I * and Aircraft Carrier. The Cruiser takes three positions and the Aircraft Carrier takes five. For lllII this option, your 8x8 grid should look like [5%]: Improve the user interface by utilizing the system( "PAUSE") and system("CLS") . S. [596]: Create a header file (h) and separate source files (.cpp) for each of your functions Design Specifications: 1) The program should first create the 6x6 grid (ocean) and place the three ships somewhere within this grid. The program should randomly select both the orientation (i.c. vertical or horizontal) and location for each ship. The Destroyer takes two positions, whereas the Submarine takes three and the Battleship takes four. Be sure that the location selected permits the placement of the ship into that location and that the ships do not overlap

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!