C++ Program

Completed Posted Apr 13, 2014 Paid on delivery
Completed 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.

};

C++ Programming

Project ID: #5800858

About the project

29 proposals Remote project Active Apr 15, 2014

Awarded to:

Imranceo

Hello ! huynguyen9 I am here please award me ...............I am imranceo so give me work thanks..................................

$50 USD in 3 days
(13 Reviews)
3.9

29 freelancers are bidding on average $21 for this job

szymszteinsl

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!

$30 USD in 1 day
(18 Reviews)
5.9
it2051229

Hi, I am placing my bid on your project because I have read the requirements and I am confident enough with my C++ and algorithm skills. I am focused mostly on doing computer science homework here in freelancer.com and More

$10 USD in 0 days
(111 Reviews)
5.5
urmate

HI Contact me for an efficient, well documented and perfect solution and development of your project. I ensure quality work with always on time delivery of project and dedicated support and follow up. Thanks More

$25 USD in 0 days
(30 Reviews)
4.6
nani01029x

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

$25 USD in 1 day
(26 Reviews)
4.3
zeeshanyousaf

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.

$50 USD in 3 days
(9 Reviews)
4.0
sanjay1208

A proposal has not yet been provided

$15 USD in 1 day
(2 Reviews)
3.7
juniadsarfraz

Seems VERY easy to me. I can do this. Contact me ASAP. Regards, Junaid

$20 USD in 1 day
(8 Reviews)
2.9
vkoder

I can quickly finish as soon as possible .. please ping me I am C/C++ expert so this is easy task for me

$25 USD in 1 day
(7 Reviews)
2.8
dpappu131

HELLO , I CAN DO THIS ....THANX ........................ WAITING FOR YOUR RESPONSE .............. REGARDS ........

$25 USD in 1 day
(5 Reviews)
2.8
vietcompro

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

$20 USD in 1 day
(4 Reviews)
2.6
zabolotniipavel

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

$15 USD in 1 day
(6 Reviews)
2.5
pivn

Đề xuất vẫn chưa được gửi

$30 USD in 2 days
(4 Reviews)
2.0
deadheadvw

Understood your requirements and willing to work on the same. Please consider my bid and discuss further. Thanks.

$20 USD in 1 day
(2 Reviews)
1.5
Nikhil3398

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

$23 USD in 1 day
(2 Reviews)
1.2
Adarsh1991

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.

$21 USD in 1 day
(0 Reviews)
0.0
shani15

A proposal has not yet been provided

$25 USD in 4 days
(0 Reviews)
0.0
riteshkumar1989

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

$15 USD in 1 day
(0 Reviews)
0.0
Solbox

Hi huynguyen93! I'm professional C++ programmer. I understand what do you need and I can get it for you quickly. I will start the work asap and will help with understanding the code. Do you need more? Don't hesitate to More

$18 USD in 0 days
(0 Reviews)
0.0
asewgobind

I've got 11+ years with C++ and OO programming. It's part of my daily job as lead software engineer.

$25 USD in 1 day
(0 Reviews)
0.0
navneetkhare

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!

$30 USD in 1 day
(0 Reviews)
0.0