An Unsorted Type ADT is to be extended by the addition of function SplitLists, which has the following specifications:
void SplitLists(const UnsortedType& list, ItemType item, UnsortedType& list1, UnsortedType& list2) { ItemType listItem; list1.MakeEmpty(); list2.MakeEmpty(); list.ResetList(); while (!list.IsLastItem()) { list.GetNextItem(listItem); if(listItem > item) list2.InsertItem(listItem); else list1.InsertItem(listItem); } } b. Implement SplitLists as a linked member function of the Unsorted List ADT. bool IsThere(ItemType item) const; bool UnsortedType:: IsThere(itemType item) { Bool moreToSearch; Int location =0; Found = false; Moreto Search = (location < length); While(moreToSearch && !found) { switch(item.ComparedTo(info[location])) { Case LESS: Case GREATER: location ++; moreToSearch = (location< length); break; } } Return found; }
Our motto is deliver assignment on Time. Our Expert writers deliver quality assignments to the students.
Get reliable and unique assignments by using our 100% plagiarism-free.
Get connected 24*7 with our Live Chat support executives to receive instant solutions for your assignment.
Get Help with all the subjects like: Programming, Accounting, Finance, Engineering, Law and Marketing.
Get premium service at a pocket-friendly rate at AssignmentHippo
I was struggling so hard to complete my marketing assignment on brand development when I decided to finally reach to the experts of this portal. They certainly deliver perfect consistency and the desired format. The content prepared by the experts of this platform was simply amazing. I definitely owe my grades to them.
Get instant assignment help