Question: please do it in c++, please! thank you. Write And Test An Array Class [DynamicArray.h and DynamicArray.TestDriver.cpp] Write and test a data structures template. The

please do it in c++, please! thank you. Write And Test Anplease do it in c++, please! thank you.

Write And Test An Array Class [DynamicArray.h and DynamicArray.TestDriver.cpp] Write and test a data structures template. The resulting template can be used in any program in place of a C++ array. Requirements. Develop DynamicArray.h as you write DynamicArray.TestDriver.cpp with class DynamicArray, defined and fully tested. Write the public interface exactly as specified below - do not add to, or change the public interface as specified. Write the template for an array of capacity = 2 (default constructor) of unspecified type. Include a public square bracket getter and setter pair, both with index range-checking, returning whatever value you wish if out of range. But apply capacity auto-adjusting for the setter if out of range high. Include a public getter named DynamicArray::capacity() to return the data structure's now-variable capacity Include a public setter named DynamicArray::capacity(int) to change the capacity. Do tests with int, double, or char. Also do tests with an object, like string. Write And Test An Array Class [DynamicArray.h and DynamicArray.TestDriver.cpp] Write and test a data structures template. The resulting template can be used in any program in place of a C++ array. Requirements. Develop DynamicArray.h as you write DynamicArray.TestDriver.cpp with class DynamicArray, defined and fully tested. Write the public interface exactly as specified below - do not add to, or change the public interface as specified. Write the template for an array of capacity = 2 (default constructor) of unspecified type. Include a public square bracket getter and setter pair, both with index range-checking, returning whatever value you wish if out of range. But apply capacity auto-adjusting for the setter if out of range high. Include a public getter named DynamicArray::capacity() to return the data structure's now-variable capacity Include a public setter named DynamicArray::capacity(int) to change the capacity. Do tests with int, double, or char. Also do tests with an object, like string

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!