Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

help me plz use c++ 10 std; class UnstortedList { public: void MakeEmpty(); 8 bool IsFull() const; int lengthis() const; void RetriveItem(int & item, bool

help me plz use c++ image text in transcribed
image text in transcribed
image text in transcribed
10 std; class UnstortedList { public: void MakeEmpty(); 8 bool IsFull() const; int lengthis() const; void RetriveItem(int & item, bool & found); 11 void Insert Item(int item); 12 void Delete(int item); 13 private: 14 int length; 15 int info (500); 16 17 }; 18 void UnstortedList :: MakeEmpty() 19 { 20 length=0; 21 } 22 bool UnstortedList :: IsFull() const 23 { 24 return(length=+500); 25 } 26 int UnstortedList :: lengthis() const 27. { 28 return length; 29 } 30 void UnstortedList :: Insert Item(int item) 31 - { 32 info [length]= item; 33 length ++; 34 } 35 36 int main() 37 { 8 UnstortedList obj; 9 obj.Insert Item(10); O obj. Insert Item(100); 1 obj.InsertItem(100); 2 obj.Insert Item(500); ch: Tocertittomia 12 found) void RetriveItem(int item, bool void InsertItem(int item); void Delete(int item); void printlist (); private: int length; int info [ee]; 16 }; 19 void Unstortedlist :: MakeEmpty() 20 { 21 length=0; 22 } 23 bool UnstortedList :: IsFull() const 24 { 25 return(length=5ee); 26 } 27 int UnstortedList :: lengthis() const 28 { 29 return length; 30 } 31 void UnstortedList :: Insertitem(int item) 32 { 33 info [length]= item; 34 length ++; 35 } 36 37 void Unstortedlist ::printlist() 38 { 39 for(int i=0; i

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Mining Concepts And Techniques

Authors: Jiawei Han, Micheline Kamber, Jian Pei

3rd Edition

0123814790, 9780123814791

More Books

Students also viewed these Databases questions