Build a simple c++ program

Program 1

Design and implement a class named Person that has the following properties:

• Title

• First name

• Middle name

• Family name

• Fullname

• Birth date

• Gender

• Home address

• Phone

• E-mail

The person class must have the following methods:

• Default constructor

• Copy constructor

• Destructor

• Setters

• Getters

Write a main program that will test the Person class by doing the following:

1) Read from a text file at least 10 persons and store them into an array pointed at by a unique_ptr of 10 Persons array.

2) Write a function named Print that will receive a reference to a unique_ptr array and display all the persons in a table form.

Program 2

Design and implement four classes Staff, Hospital, Department and Address.

1. Create a class named Staff with at least the following data members (id, name, birthdate, education, certification, address, and main language,).

2. Design a proper Address class that stores and manipulates the address elements.

3. The Hospital class must have at least the following members (Name as a string, Address as an Address object, phone, fax, e-mail, an array of departments, and any fields you feel necessary)

4. The Department class has at least the following members (name, an array of Staff, number of staff, and any number of data fields you find necessary).

5. In the main function:

a. Create 7 Address objects and initialize them with some data.

b. Create 6 objects of Staff and initialize them with data of your choice. Add an address object to each staff object created.

c. Create 2 department objects. Add the first 3 Staff objects to the first department object and the last three to the second department.

d. Create an object of type Hospital. Initialize the address of the hospital to the 7th address. Add the two departments to the hospital.

e. Display all the components you created with proper functions and messages.

// add comments for each function

// this is two separate program named under program 1 and program 2 compiles and run separately.

Kemahiran: Pengaturcaraan C++

Lihat lagi: c++ programs list, how to create a software using c++ pdf, how to make program in c++ pdf, basic c++, c++ programs examples, how to make program in c++ in hindi, how to make a program in c++, how to write a program in c++, different parts simple java program, parts simple java program, simple mail program php, duplicate simple flash program, build simple web page header, simple tcp program, build simple touch screen glass, simple cnet program, simple unix program, build simple store magento, simple c program , simple c# program

Tentang Majikan:
( 5 ulasan ) SKUDAI, Malaysia

ID Projek: #19303670

Dianugerahkan kepada:


Hello, I have 7+ years experience coding in C++. I can help you with your project. Looking forward to working with you.

$15 USD dalam sehari
(8 Ulasan)

8 pekerja bebas membida secara purata $29 untuk pekerjaan ini


Hi I'm an expert in C++ programming. I'm sure that I can easily do this project. We can have a about it. Thanks..

$40 USD dalam sehari
(276 Ulasan)

HI...I am proficient in C/C++ object oriented programming using required data structures, algorithms and work with classes, methods and can solve the problem as per instructions in C++.

$60 USD dalam sehari
(92 Ulasan)

Good Morning Employer, I am a professional programmer and I am sure that I can complete this project with perfection. I can create the classes and functionalities for you! I will complete the whole p Lagi

$25 USD dalam sehari
(20 Ulasan)

I will do in 1 day. if you need i will send you the demo video after 4h I am new freelacer but I have experience in my company, and have many years of experience in C / C ++, c#, .NET programming on different platforms Lagi

$15 USD dalam sehari
(1 Ulasan)

Respected Employer, I understood your project description and interested in your job. Inbox me for further details........ I will do it with full of your IDEA! I believe that my 6+ years of programming experience make Lagi

$20 USD dalam sehari
(0 Ulasan)

Hi, I have 2+ professional years of experience in computer programming as a software engineer, I am gold medalist and i have done bachelors in computer science. On Freelance i am new just give me a try, trust me your Lagi

$30 USD dalam sehari
(0 Ulasan)

I'm an 3-year experienced .NET developer, working with ASP.NET, WPF, WCF technologies, also PowerShell, C++ and Java. Have experience with SQL and noSQL databases. Have 1-year experience with front-end, using Angular Lagi

$25 USD dalam sehari
(1 Ulasan)