Suoritettu

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.

Taidot: C++ -ohjelmointi

Näytä lisää: 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

Tietoa työnantajasta:
( 5 arvostelua ) SKUDAI, Malaysia

Projektin tunnus: #19303670

Myönnetty käyttäjälle:

alvinpiter

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

$15 USD 1 päivässä
(8 Arvostelua)
2.7

8 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön

utkarshkatiyar19

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 1 päivässä
(276 arvostelua)
7.0
koustav2006

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 1 päivässä
(92 arvostelua)
5.8
visweswaran1998

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 Lisää

$25 USD 1 päivässä
(20 arvostelua)
4.0
DatNguyenQuoc

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 Lisää

$15 USD 1 päivässä
(1 arvostelu)
0.6
hamzaunitechsol

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 Lisää

$20 USD 1 päivässä
(0 arvostelua)
0.0
adeebkhalid

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 Lisää

$30 USD 1 päivässä
(0 arvostelua)
0.0
fb595ca913935ed

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 Lisää

$25 USD 1 päivässä
(1 arvostelu)
0.0