Most of the code is already there, this is for educational purposes to compare with my own and learn. I do not expect to pay too much as this will be an easy job for you.
I will be providing all the files and instructions very easy for you.
Part of instructions:
Design and code a class named Passenger in the namespace holiday. The class represents passengers for an airline company that go on vacation. Add to the class the following private attributes:
m_name: an array of characters of size 32 (including '\0') that holds the name of the passenger;
m_destination: an array of characters of size 32 (including '\0') that holds the destination where the passenger is travelling;
m_departureYear, m_departureMonth, and m_departureDay: three integers that together represent the date when the passenger goes on vaca-tion;
The class Passenger has the following member function already implemented in [url removed, login to view] (look at this function and make sure you understand its imple-mentation):
void display(bool onlyNames = false) const: a query that displays the contents of a Passenger instance.
Add to the type Passenger the following member functions (and implement them—make sure to reuse existing code instead of duplicating it):
default constructor (a constructor with no parameters): this constructor should set the instance to the safe empty state (the safe empty state is when all numeric attributes are set to zero and the strings are set to the empty string);
constructor with 2 parameters: The first parameter contains the name of the passenger and the second parameter contains the destination of the journey. This constructor should set the m_name attribute to the first parameter, the m_destination attribute to the second parameter, and the departure date to July 1st, 2017. This constructor validates the parameters before accepting them; if the parameters are not valid (any of them), then this function should set the instance to the safe empty state.
- The strings are valid if they are not null and not empty;
bool isEmpty() const: a query that checks if the Passenger instance is in the safe empty state;
bool canTravelWith(const Passenger&) const: a query that checks if two passengers can travel together (two passengers can travel together if they go to the same destination on the same date).
Hello. Lets talk about the price. I can do this for you in less than an hour if all things be equal. I can take as low as $5.00 if you're willing to work with me. I just want to help.
15 freelanceria on tarjonnut keskimäärin 27 $ tähän työhön
Hi, I've got quite some experience with C and C++ and I'm sure I can help you out with your project. This won't take more than a couple of hours to finish.
hey i am new here as my profile shows but i am building my reputation and i can do your work as I bid to only those projects which i think i can complete, thanks :)