C++ Program
$10-30 USD
Paid on delivery
Example 10-10 defined a classpersonType to store the name of a person. The member functions that we included merely print the name and set the name of a person. Redefine the class personType so that, in addition to what the existing class does,you can:
a. Set the first name only.
b. Set the last name only.
c. Store and get the middle name.
d. Check whether a given first name is the first name of this person.
e. Check whether a given last name is the same as the last name of this person. Write the definition of the member functions to implement the operations for this class. Also, write a program to test various operations on this class.
--------------------------------
Example 10-10
#include <string>
using namespace std;
class personType
{
public:
void print () const;
//Function to outputthe first name and last name in the form firstNamelastName
void setName (string first, stringlast);
//Function to set firstName andlastName according to the parameters. Postcondition: firstName =first; lastName = last;
String getFirstName () const;
//Function to return the first name. Postcondition: The valueof the first name is returned.
String getLastName () const;
//Function to return the last name. Postcondition: Thevalue of the last name is returned.
personType (string first = “ “, stringlast= “ “);
//Constructor
//Sets firstName and lastName according to theparameters.
//The default values of the parameters are nullstrings
//Postcondition: firstName = first; lastName =last;
private:
string firstName; //variable to store the firstname.
string lastName; //variable to store the last name.
};
Project ID: #5800858
About the project
Awarded to:
Hello ! huynguyen9 I am here please award me ...............I am imranceo so give me work thanks..................................
29 freelancers are bidding on average $21 for this job
Ready, sir! Ready, sir! Ready, sir! Ready, sir! Ready, sir! Ready, sir! Ready, sir! Ready, sir! Ready, sir! Ready, sir! Ready, sir! Ready, sir! Ready, sir!
I have done some projects in programming for students around the world and got some positive feedbacks from clients. I have very high Completion Rate and all 5-star rating. You can check my profile for more information More
Sir I have proven ability to design, plan and lead high-impact programs.I can do this project easily.I am looking forward to speak with you about these Projects. Thanks.
I can quickly finish as soon as possible .. please ping me I am C/C++ expert so this is easy task for me
HELLO , I CAN DO THIS ....THANX ........................ WAITING FOR YOUR RESPONSE .............. REGARDS ........
Hi there, I've read the description and understood the requirements, I can do this one for you. I'm really interested in doing this project. A little bit about my background: I'm a computer systems engineer graduate More
Hi, I have a great experience in c/c++/c# and java. It's an easy task for me and I can do it for you without any difficulties. It's a student's homework and I'm a student too. That's why you have to select my bid. I'l More
Understood your requirements and willing to work on the same. Please consider my bid and discuss further. Thanks.
Hi.. I am Nikhil. I have working experience of 3+ year in C++ Development. I have done work on: 1. Data Structure like: Set, Vector, Linked list, Tree(Any type), Graph. 2. STL ( Tamplate Library) 3. Overloading a More
Hello! I'm computer engineer and expert programmer of C++,OOP etc. I'm also teaching in university and had give this type of scenarios to my students as assignments. You can trust me, I'll complete this task in time.
Hi, I have done many project in C and C++. So it will take only one hour for me to complete this project. I will give you a module (class) with all the functions as you mentioned. 1) Print() -- to print the FirstN More
I've got 11+ years with C++ and OO programming. It's part of my daily job as lead software engineer.
This seems interesting. Nice to see a different kind of project than designing websites, php, jquery and what not! Haha. I can certainly get this done fast. Well, let me know if I can be of help. Have a nice day!