Dynamic Array
– Task: Create a class that implements a Dynamic Array. The class
should implement the following method/constructor
• A constructor that allows for specifying a default size (default size
may or may not be given)
• addElement: Adds an integer to the array
• insert Element: Adds or inserts an integer at a given location
• delementElement: Deletes an integer from the element.
• size: Prints out the current size of the array
• count: Prints out the number of elements currently stored
• util: Prints out the utilization of the Array (size/count)
• shrink: delete unused location of the array (i.e., utilization is 100%)
• Print: Prints out the elements in an array
Get Free Quote!
368 Experts Online