Maurice Tutor

(5)

$15/per page/Negotiable

About Maurice Tutor

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Algebra,Applied Sciences See all
Algebra,Applied Sciences,Biology,Calculus,Chemistry,Economics,English,Essay writing,Geography,Geology,Health & Medical,Physics,Science Hide all
Teaching Since: May 2017
Last Sign in: 398 Weeks Ago, 2 Days Ago
Questions Answered: 66690
Tutorials Posted: 66688

Education

  • MCS,PHD
    Argosy University/ Phoniex University/
    Nov-2005 - Oct-2011

Experience

  • Professor
    Phoniex University
    Oct-2001 - Nov-2016

Category > Computer Science Posted 13 Jul 2017 My Price 11.00

dynamic arrays

Need This In C++

Please make sure it follows all guidlines and code compiles before just throwing it out there....

One problem with dynamic arrays is that once the array is created using the new
operator the size cannot be changed. For example, you might want to add or delete
entries from the array similar to the behavior of a vector . This project asks you
to create a class called DynamicStringArray that includes member functions that
allow it to emulate the behavior of a vector of strings.
The class should have the following:
A????1 A private member variable called dynamicArray that references a dynamic
array of type string.
A????1 A private member variable called size that holds the number of entries in
the array.
A????1 A default constructor that sets the dynamic array to NULL and sets size to 0.
A????1 A function that returns size .
A????1 A function named addEntry that takes a string as input. The function should
create a new dynamic array one element larger than dynamicArray , copy all
elements from dynamicArray into the new array, add the new string onto the
end of the new array, increment size, delete the old dynamicArray , and then
set dynamicArray to the new array.
A????1 A function named deleteEntry that takes a string as input. The function
should search dynamicArray for the string. If not found, it returns false . If
found, it creates a new dynamic array one element smaller than dynamicArray .
It should copy all elements except the input string into the new array, delete
dynamicArray , decrement size, and return true .

A????1 A function named getEntry that takes an integer as input and returns the
string at that index in dynamicArray . It should return NULL if the index is out
of dynamicArrayA????1s bounds.
A????1 A copy constructor that makes a copy of the input objectA????1s dynamic array.
A????1 Overload the assignment operator so that the dynamic array is properly copied
to the target object.
A????1 A destructor that frees up the memory allocated to the dynamic array.
Embed your class in a suitable test program

Answers

(5)
Status NEW Posted 13 Jul 2017 03:07 PM My Price 11.00

Hel-----------lo -----------Sir-----------/Ma-----------dam----------- Â----------- Th-----------ank----------- Yo-----------u f-----------or -----------usi-----------ng -----------our----------- we-----------bsi-----------te -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill-----------

Not Rated(0)