Question: C++help please a) Given the following code: int main) const int CAPACITY 100: int numElements -10 int a [CAPACITY) -(10,20,30, 40,50,60, 70, 80,90,100) output (a,

C++help please  C++help please a) Given the following code: int main) const int

a) Given the following code: int main) const int CAPACITY 100: int numElements -10 int a [CAPACITY) -(10,20,30, 40,50,60, 70, 80,90,100) output (a, numElements) return 0 b) Implement the array output function. c) Implement any three of the following functions: getIndex Return the location of an element, -1 if element does not exist. deleteFirst Delete the first element in the array insertFirst Insert element in the first position in the array. insertAt Insert an element at a specified position in the array. deleteAt Delete the element at a specified position in the array. d) Demonstrate that each function works using console output

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!