Build a simple c++ program

Ukończone Opublikowano 4 lat temu Płatność przy odbiorze
Ukończone Płatność przy odbiorze

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.

Programowanie w C++

Numer ID Projektu: #19303670

O projekcie

7 ofert Zdalny projekt Aktywny 4 lat temu

Przyznany użytkownikowi:

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 w 1 dzień
(13 ocen)
3.4

7 freelancerów złożyło ofertę za $30 w tym projekcie

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 w ciągu 1 dnia
(314 Oceny)
7.2
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 w ciągu 1 dnia
(125 Oceny)
6.0
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 Więcej

$25 USD w ciągu 1 dnia
(21 Oceny)
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 Więcej

$15 USD w ciągu 1 dnia
(2 Oceny)
0.6
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 Więcej

$30 USD w ciągu 1 dnia
(0 Oceny)
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 Więcej

$25 USD w ciągu 1 dnia
(1 Ocena)
0.0