The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Jul 2017 |
| Last Sign in: | 304 Weeks Ago, 3 Days Ago |
| Questions Answered: | 15833 |
| Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
In C++. In this Assignment. You will be implementing your own Tree ADT.
Please download the tree.h file which has all the methods for you to implement and Do not modify the tree.h file.
I have also provided tree_main.cpp file to test your program functionality. It should be fairly simple assignment.
Please submit your header file and two.cp files(Implementation #include "tree.h"
#include <iostream>
using namespace std;
int main()
{
   Tree t;
   t.push(4);
   t.push(2);
   t.push(1);
   t.push(3);
   t.push(6);
   t.push(5);
   cout<<"t is : "<<endl;
   t.print();
   Tree t3(t);
   t3.push(7);
   cout<<"t is : "<<endl;
   t.print();
   cout<<"t3 is : "<<endl;
   t3.print();
   Tree t2;
   t2.push(2);
   t2.push(1);
   t2.push(3);
   t2 = t;
   t2.push(8);
   t2.push(9);
   t2.push(11);
   cout<<"t2 is : "<<endl;
   t2.print();
   cout<<"t is : "<<endl;
   t.print();
   t2.deleteNode(1);
   t2.deleteNode(5);
   cout<<"t2 is : "<<endl;
   t2.print();
  Â
   TreeNode *node = t.find(5);
   cout << "found: " << node->value << endl;
   node = t.find(100000);
   cout << "t.find(100000): " << node << endl;
}
and main.cpp files) as a zip file with your name
----------- Â ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly