SophiaPretty

(5)

$14/per page/Negotiable

About SophiaPretty

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Applied Sciences,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Economics,Engineering,English,Environmental science,Essay writing Hide all
Teaching Since: Jul 2017
Last Sign in: 304 Weeks Ago, 3 Days Ago
Questions Answered: 15833
Tutorials Posted: 15827

Education

  • MBA,PHD, Juris Doctor
    Strayer,Devery,Harvard University
    Mar-1995 - Mar-2002

Experience

  • Manager Planning
    WalMart
    Mar-2001 - Feb-2009

Category > Computer Science Posted 04 Nov 2017 My Price 10.00

Please download the tree.h file which has all the methods

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

Answers

(5)
Status NEW Posted 04 Nov 2017 06:11 AM My Price 10.00

-----------  ----------- 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

Not Rated(0)