Question: The following problems are in c++ language!!! In c++ thx. Recitation Activit For today's recitation activity you are going to implement three separate classes ar

The following problems are in c++ language!!!

The following problems are in c++ language!!! In c++ thx. Recitation ActivitFor today's recitation activity you are going to implement three separate classes

In c++ thx.

Recitation Activit For today's recitation activity you are going to implement three separate classes ar The first class you will implement is called battleShip. The battleShip.h file has been made available on Moodle. You are also given the the beginning of a main file for Battle Ship: BattleShip_main.cpp Download these files and place them into the same folder on your computer. Open them with CodeBlocks. You will implement the battleShip class and fill out the main file for part 1 of the recitation You will create your class file battleShip.cpp. In battleShip.cpp you will define the methods. (Remember: methods define what your object does). How many methods do you see in your header file? It will be your ob to fll in these methods so that they work.The constructor always has the same name as your class file, and it never has a data type. Make sure to import the proper class file "battleShip.h" and libraries etc. in the header of your battleShip.cpp file. See the BattleShip_main.cpp for further instructions. You will need to create 3 instances of your class, set up some of the methods, and expand on the logic of the while loop When you have finished, implementing these methods, show your TA to check off your work. Then move onto the next part. Part 2: Planet Class Parts 2 and 3 of this recitation activity have a shared main file SolarSystem_main.cpp, provided to you on Moodle The next class you will implement is called planet. This time we have given you the class file planet.cpp It is your job to create the header file for the planet class. Create the file planet.h in CodeBlocks in the same directory as the main file. The planet class has two constructors, a default constructor (which takes no arguments) and a constructor which takes the arguments string planetName, float planetRadius (the radius of the planet, in km), float planetDist (the distance the planet orbits from the sun, in Astronomical Units) Once you have implemented the header file for the planet class, you will need to modify main to test your class. Use the table of planet data provided to you in the main file to create four planet objects of the Solar System. It will be helpful to use an array for this task, as the code to test your planets assumes an array of planet objects

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!