Question: please, do include your comments in the code so that i can understand. 7. Basic Binary Trees Just in case you ever own a chicken

 please, do include your comments in the code so that i

please, do include your comments in the code so that i can understand.

7. Basic Binary Trees Just in case you ever own a chicken farm, you're going to make a binary tree to store all their chickenly records. For each chicken, the following pieces of information will be stored: first name, last name, birthday, weight (in ounces). Yes, modern chickens have two names, just like people a. Define a struct suitable for representing a chicken. b. Define a struct and its constructor suitable for representing a node in a bina tree of chickens. C. Add a function that will add a new chicken to a tree. The tree should be ordered alphabetically on the chickens' last names. If two chickens have the same last name, break the tie by using their first names d. Add a function that will search a tree to find a chicken with given first and last names (parameters). Be sure that your function behaves in a reasonable way if no such chicken can be found

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!