Question: C++ Programming - Subject: Binary Trees Needed: 1. I'm using Visual Studios 2017 for IDE therefore I'll need separate files for: header, the class file

C++ Programming - Subject: Binary Trees

Needed:

1. I'm using Visual Studios 2017 for IDE therefore I'll need separate files for: header, the class file and main (and specify which file is which with all its necessary preprocessors on top)

2. Please use comments so I can follow along and learn

What needs to be done:

C++ Programming - Subject: Binary Trees Needed: 1. I'm using Visual Studios2017 for IDE therefore I'll need separate files for: header, the class

Here are the contents of the IntBinaryTree class from Chapter 21:

file and main (and specify which file is which with all its

Please stick with the reference and nothing too advanced ^ because we are just learning this now

I will rate positively as soon as I can run the program on my side and everything I asked for was done thanks

Functional Requirements: A looping, menu-driven program that allows the user to create a binary tree and to display data about the tree. ei Using the IntBinaryTree class from Chapter 21 as the starting point, add the following member functions Leaf Counter (which counts and returns the number of leaf nodes in the tree) Tree Height (which counts and returns the height of the tree - the height is the number of levels it contains Tree Width (which counts and returns the width of the tree - the width is the largest number of nodes in the same level.) Write a menu-driven program that will allow the user to 1. Insert numbers 2. Display the tree (in order) 3. Display Leaf Count 4. Display Tree Height 5. Display Tree Width 6. Exit our program should contain high-level validation for numeric input (use a while loop and allow use to re-enter the data)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!