W Toku

C++ Help

Design and code a template container object and execute tests of this object as it contains different data types. The template object will model a data structure or container, an array is the most likely choice. The implementation of the array in the template will use dynamic allocation of memory with the new and delete operators. The template will have the following methods and members.

**_METHODS:

_**- A default constructor that will allocate memory and assume a size of 10 for the number of elements in the container.

- A one-argument constructor that will allocate memory and allow the user to override the default size of the container.

- A copy constructor that will perform a deep copy of the container object.

- A destructor that will delete the dynamic memory used for the container.

- Overloaded operator = that will also perform a deep copy of the template container.

- Overloaded operator [] that will access individual elements of the container.

- A generic method that will sort the elements in the container, using either the insertion sort or bubble sort technique.

**_DATA:

_**- Pointer to generic data type

- Integer value representing the size of the container

## Deliverables

Design and code a template container object and execute tests of this object as it contains different data types. The template object will model a data structure or container, an array is the most likely choice. The implementation of the array in the template will use dynamic allocation of memory with the new and delete operators. The template will have the following methods and members.

**_METHODS:

_**- A default constructor that will allocate memory and assume a size of 10 for the number of elements in the container.

- A one-argument constructor that will allocate memory and allow the user to override the default size of the container.

- A copy constructor that will perform a deep copy of the container object.

- A destructor that will delete the dynamic memory used for the container.

- Overloaded operator = that will also perform a deep copy of the template container.

- Overloaded operator [] that will access individual elements of the container.

- A generic method that will sort the elements in the container, using either the insertion sort or bubble sort technique.

**_DATA:

_**- Pointer to generic data type

- Integer value representing the size of the container

**_PROGRAM:

_**- Declare a template container of data type int (built-in), and read data into array.

- Sort int data in template using the generic sort method, and display the results.

- Declare a template container of data type string objects (from c++ standard library), and read data into array.

- Sort string data in template using the generic sort method, and display the results.

- Declare a template container of data type fraction objects (user-defined), and read data into array.

- Sort fraction data in template using the generic sort method, and display the results.

**_NOTES:

_**The Simpler the template container class is, the better it will work as a generic container object. Do not add any other methods or members to the template, except perhaps for private utility functions used by the generic sort method.

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):

a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.

b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.

3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).

## Platform

Windows XP

Microsoft Visual C++ 6.0

Umiejętności: Inżynieria, Microsoft, MySQL, PHP, Architektura oprogramowania, Testowanie oprogramowania, Pulpit systemu Windows

Zobacz więcej: working of insertion sort, types of data structure, types of array in data structure, types data structure, type of data structure in c, the standard template library, template container, string standard functions in c, string library in c, string library c, string in data structure, string data structure, standard template library in c, standard template library c, standard library string functions in c, standard library c, standard c types, sort bubble, sort array c, program for bubble sort in data structure, pointer in data structure, pointer data structure, pointer array in data structure, int size c, insertion sort program in data structure

O pracodawcy:
( 11 ocen ) United States

Numer ID Projektu: #3198984

Przyznane użytkownikowi:

fmachidon

See private message.

$7 USD w ciągu 2 dni
(1 Ocena)
0.0

4 freelancerów złożyło ofertę na średnią kwotę w wysokości $42 do tego projektu.

utopiaprogr

See private message.

$102 USD w ciągu 2 dni
(62 Ocen)
5.4
unamigo

See private message.

$17 USD w ciągu 2 dni
(51 Ocen)
5.3
paulomonteirovw

See private message.

$42.5 USD w ciągu 2 dni
(0 Ocen)
0.0