In this programming assignment you're asked to extend the circular Linked List of integers by adding the following new methods: CountEven, IncrementInfo, Sorted, EvenSublist, and addList, that are defined below.
int CountEven()
- Function: Returns the number of even elements in the list.
- Precondition: List has been initialized
- Postcondition: Function value = number of even integers in the list.
void IncrementList(int 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.
bool Sorted( )
- Function: Checks if the elements of the list are sorted in ascending order.
- Precondition: List has been initialized.
- Postcondition: Function value = true if list's elements are sorted in ascending order; False, otherwise.
CircularList EvenSubList()
- Function: Returns a sublist containing only the even elements.
- Precondition: List has been initialized
- Postcondition: Function value = a circular list containing only even ones.
void AddList(CircularList l2)
- Function: Adds all elements of l2 to the actual list.
- Precondition: Actual list and l2 have been initialized.
- Postcondition: Function value = elements of l2 are added to the actual list.
Need an expert programmer to finish coding the requirements from the assignment