data structures and algorithm

H_c63

In this programming assignment you are asked to expand the SortedArrayList data structure we

have developed in class by adding the following new methods:

 void IncrementItems(T aValue)

- Function: Increments all lists’ values by aValue.

- Precondition: List has been initialized

aValue has been initialized

- Postcondition: Function value = elements of the list have their info incremented

by a Value.

 int CountEven()

- Function: Returns the number of elements that appears an even number of

times the list.

- Precondition: List has been initialized

- Postcondition: Function value = number of even integers in the list.

 void ReverseOrder ( )

- Function: Reverses the order of the list’s elements.

- Precondition: List has been initialized.

- Postcondition: Function value = elements changed to descending order, if

elements are in ascending order, and vice-vers

  • 6 years ago
  • 15
Answer(1)

Purchase the answer to view it

NOT RATED
  • datastructure.zip
  • Main.zip