Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

If you could please explain the reasoning behind the answer. Thank you! 1. (12 p

ID: 3710047 • Letter: I

Question

If you could please explain the reasoning behind the answer. Thank you!

1. (12 points) Suppose we were using an array to store items in a list. The items must remain together in the array. You can add items to the end of the list, or at any index position that will keep the data together. You can remove items from any index where there is an item. An example is shown below. Add "Milkbones" to the list: "Mikbanes" Add "Bread" to the list "Milkbones". "Bread" Remove item at index 0 from list: "Bread Add "Punperani at index 0: "Bupperni. "Bread Note it would be legal to add at indices 0, 1, or 2 now. It would be legal to remove only from indices 0 and 1 a. If the array is perfect size, find the signatures for the methods below. i. Add at end of list ii. Add at a given index in list ii. Remove from a given index in list b. If the array is oversize, find the signatures for the methods below. i. Add at end of list ii. Add at a given index in list ii. Remove from a given index in list

Explanation / Answer

Solution:

a)

i)

ii)

iii)

b)

i)

ii)

iii)

I hope this helps if you find any problem. Please comment below. Don't forget to give a thumbs up if you liked it. :)