Question: Using C++ Insert elements into a partially filled array. a) Create a partially filled array of CAPACITY 100. b) Initialize the array with values 10,20,30,40,50,60,70,80,90,100

Using C++

Insert elements into a partially filled array.

a) Create a partially filled array of CAPACITY 100.

b) Initialize the array with values 10,20,30,40,50,60,70,80,90,100

c) Create a print function for the array.

d) Create an insert function which inserts an integer into the array in sorted position.

e) Insert the numbers 5, 150 and 55.

f) Print the array before and after each insertion.

Output Example

10 20 30 40 50 60 70 80 90 100

5 10 20 30 40 50 60 70 80 90 100

5 10 20 30 40 50 60 70 80 90 100 150

5 10 20 30 40 50 55 60 70 80 90 100 150

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!