Question: I need help with this activity below: You will need to implement the following four methods for this activity - // Display a portion of

I need help with this activity below:

You will need to implement the following four methods for this activity -

// Display a portion of an array backward for those elements between the last and first.

// a is an integer array; first is the element you will need to end with since you are "walking" backward, and last is the element that you need to begin at.

// This should be a non recursive routine.

void displayBackward(int[] a, int first, int last);

  • // Implement your logic using recursion; same requirements as the displayBackward()
  • void displayBackwardRecursively(int[], int, int);
  • Create two additional methods of your choice which will manipulate a string (instead of an array) - iterative vs. recursive
  • You are here to compare and contrast iterative vs. recursive routines
  • Include a driver to test the four methods

thank you for your help I appreciate it. use JAVA language please.

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!