Design and implement the class myarray that solves the array index out of bound problem and also allows the user to begin the array index starting at any integer, positive or negative. Every object of the type "myarray" is an array of the type int. During execution when accessing an array component, if the index is out of bounds, the program must terminate with an appropriate error message/. Consider the following statements. myarray list(5); myarray mylist(2,13); myarray yourlist(-5,9); The statement in Line 1 declares LIST to be an array of 5, the component type is int and the components are list,list....list; The statement in line 2 declares MYLIST to be an array of 11 components, the component type is int and the components are mylist,mylist,....mylist; The statement in line 3 declares yourlist to be an array of 14 components, the component type is int and the components are yourlist[-5], yourlist[-4].....,yourlist....yourlist. Write a program to test the class myArray. Bonus *NOT required*: -------------------- Redisgn the class myarray using class templates so that the class can be used in any application that requires arrays to process data.
Workable program. Source code, comments. Deadline for this program is in 16 hours.
Visual studio Windows 2000 pro.