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

Please help me if you can!! A class, UnsortedType, is defined, which is an Abstr

ID: 3567087 • Letter: P

Question

Please help me if you can!!

A class, UnsortedType, is defined, which is an Abstract Data Type of an unsorted array data structure. The implementation of the member function Insertion in class UnsortedType is simply adding the item t the end of the list. As follow:

void UnsortedType::InsertItem (ItemType item)

//Pre: List has been initialized. LIst is not full.

//item is not in list.

//Post: item is in the list.

{

info[length]=item;

length++;

}

How would you modified this function so that it can be used as a member funtion of the SortedType class (sorted array)?

Explanation / Answer

100% Fresh answer, guaranteed to get you best grades possible. Just check it out: http://programmingtutor3.tk/