Dynamic Array

you will create 2 classes

RUN ALL THE EXAMPLES, your logging for all 3 mains should match the example logs as close as is possible


StaticArray 
and 
DynamicArray

-----------------------------------------------------------------------------------------------------------
class StaticArray
-----------------------------------------------------------------------------------------------------------

private members:
string data[5];

functions:
constructor  -- log the start and end of the function
destructor   -- log the start and end of the function
string ToString() -- return a string representation of the data in the array
bool SetValue(string,int) -- store the value (1st parameter) into the array at the given position (2nd parameter) and return true , do nothing and return false if the position is invalid.. <0 or >4 


put your class declaration in static_array.h and your function bodies in static_array.cpp



-----------------------------------------------------------------------------------------------------------
class DynamicArray
-----------------------------------------------------------------------------------------------------------

private members:
string * data
int capacity

functions:
constructor  -- there will be only one constructor (other than the copy constructor) , it will have and int parameter
                the parameter will be the capacity of the array, the parameter has a default value of 5
                set the member capacity with the value passed in
                set the pointer "data" to a new dynamic array of size "capacity"
                log the start and end of the function 

copy constructor
             -- the parameter will be a DynamicArray refference
								set capacity the same as the one passed in
                set your pointer to a new dynamic array 
								copy the data from the one passed in

                
destructor   -- clean up the dynamic array, call delete [] on the pointer
                log the start and end of the function
string ToString() -- return a string representation of the data in the array
bool SetValue(string,int) -- store the value (1st parameter) into the array at the given position (2nd parameter) and return true  
                             do nothing and return false if the position is invalid.. <0 or > capacity-1

put your class declaration in dynamic_array.h and your function bodies in dynamic_array.cpp


-----------------------------------------------------------------------------------------------------------
copy over all the files provided for you 
the files are in the usual place


sample mains have been provided to test both of your classes



the StaticArray class is nearly completed 
the DynamicStack files are nearly empty

make sure the output of the provided mains match the runnable  examples provided

make sure the output of the log files match as well , you need to implement logging