C++ battleship.Assignments1. Test. Create a project titled Lab9_.docx

This preview shows page 1 - 3 out of 7 pages.

c++ battleship. Assignments 1. Test. Create a project titled Lab9_Test. Add header file shown in //Figure 1 (battleship.h) to the project. Add test source file(//Figure 2 testships.cpp) to the project. Define member functions for the classes of battleship.h and place the defined member functions in battleship.cpp. You should implement the member functions for classes incrementally. Start with implementing member functions for class location, then proceed to ship and then to fleet. Uncomment the portions of testShips.cpp as you work on a particular class. Once your project works correctly with all code of testShips.cpp uncommented, submit your project. 2. Game. Create a project titled Lab9_Game. Use battleship.h, battleship.cpp from the test assignment above; add game.cpp that contains main() , invokes the game functions declared in battleship.h and implements the Battleship game Hint:the pseudocode for your main() should be as follows: declare an object of class fleet call deployFleet() method on it prompt the user if ships' positions and status need to be printed

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture