Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Project Deliverable 1 : Planet a - Based on the topic your team selected, define a class that is relevant to that topic. b -
Project Deliverable : Planet
a Based on the topic your team selected, define a class that is relevant to that topic.
b Class Requirement:
Your class should have at least data members with the following data types:
Member : a string
Member : an integer
Member : a Boolean
Member : a character.
Member : Anything else you need.
Your class should have all necessary function members to manipulate the data members.
A default constructor
A parameterized constructor
All setters and getters
A printobject function member that prints the values stored in an object.
A comparison function Compare that takes two objects of the class and returns less:
Equal: Greater:
Implement your class in separate files YourClassName.h and YourClassName.cpp
Create a driver.cpp file in which your function main will be defined.
In the main:
a Create objects of your class and initialize them with relevant information.
b Use the function member printobject to display their values.
c Use the function member Compare to compare two of the objects you created.
Fill the project documentation file and return with your code.
my topic is planet, i am confused so please help me with this.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started