
(please answer the question in c++ i need the nodes to be able to accept strings like "KIM" used in the example)
Option 4: Deletes a name from the BST.
It will prompt: Enter name you want to delete: TOM
If the name is found then delete the name from the BST and displays the message –“___ is deleted.” If the name is not in the BST, then it will display – “____ is not found in the BST”
TOM is deleted
Option 5: Counts the number of leaves in the BST and displays –
“There are ____ number of leaves in the BST.”
Option 6: Enter a name and it will display the sibling of that person.
It will prompt: Enter the name you want to find the sibling of:
The sibling of ____ is _____
If the person has no sibling, then it displays:
____ has no sibling.
Ex: Enter the item: PAM
The sibling of PAM is DON.
Option 7: Quit the



Trending nowThis is a popular solution!
Step by stepSolved in 2 steps

- HAPTER 5: Lists and Dictiona st membership > 51621 O WorkArea Instructions eadline: 03/ 11:59pm EDT Given that k contains an integer and that play_list has been defined to be a list, write a expression that evaluates to True if the value assigned to k is an element of play_list. Additional Notes: play_list and k should not be modifiedarrow_forwardIn c++ you have two Nodes A and B, both Nodes contain two numbers, how will you calculate and find which Node has the smallest numbers.arrow_forwardC Programming Language Task: Deviation Write a program that prompts the user to enter N numbers and calculates which of the numbers has the largest deviation from the average of all numbers. You program should first prompt the user to enter how many numbers that will specify. The program should then scan for each number, separated by a newline. You should calculate the average value and return the number from the list which is furthest away from this average (to 2dp). Try using dynamic memory functions to store the incoming array of numbers on the heap. Code to build from: + 1 #include 2 #include 3 4 int main(void) { 5 6} 7 Output Example: deviation.c How many numbers? 5 Enter them: 1.0 2.0 6.0 3.0 4.0 Average: 3.20 Largest deviation from average: 6.00arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education





