Question: USING C++ Implement a partially filled array of capacity 100. a) Implement an output and append function. b) Use those functions to append a number

USING C++ Implement a partially filled array of capacity 100. a) Implementan output and append function. b) Use those functions to append aUSING C++

Implement a partially filled array of capacity 100. a) Implement an output and append function. b) Use those functions to append a number of elements and output. c) Implement an insertFirst function. This inserts an element in the first position of the array. d) Implement a removeFirst function. This removes the element in the first position of the array. Hint: Both insert and remove functions will require shifting the array. Improper shifting of elements will result in data loss. Depending upon which way you are shifting (left or right), you wi11 have to iterate in reverse. Example Output Appending Elements 50 50 20 50 20 234 50 20 234 16 50 20 234 16 33 50 20 234 16 33 82 50 20 234 16 33 82 1142 50 20 234 16 33 82 1142 22 Remove First 20 234 16 33 82 1142 1142 Insert First: 100 100 20 234 16 33 82 1142 1142

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!