Programming Homework Help
Python Lab Codes
Problem 3 – Page 124
Include in your submission a test program that shows that ALL aspects of your modifications work correctly.
Add the methods grow and shrink to the Array class. These methods should use the strategies discussed in this chapter (chapter 4) to increase or decrease the length of the list contained in the array. Make sure that the physical size of the array does not shrink below the user-specified capacity and that the array’s cells use the fill value when the array’s size is increased.