Task: Write Code in C++ Language Create a Menu based program which should exit when user presses o. Your code should per
Posted: Fri Jul 01, 2022 5:52 am
Task:
Write Code in C++ Language
Create a Menu based program which should exit when user presses o. Your code should perform the following functions.
Press 1 to display the tree.
Press 2 to display the total number of nodes lesser than root node. Press 3 to print all paths from root to leaf node.
Press 4 to print difference (Tell which path has the highest sum and which has the lowest sum, print their difference and mention the paths with the highest and lowest sum out of all)
Task: Create a Menu based program which should exit when user presses O. Your codeshould perform the following functions. Press 1 to display the tree. Press 2 to display the total number of nodes lesser than root node. Press 3 to print all paths from root to leaf node. Press 4 to print difference (Tell which path has the highest sum and which has the lowest sum, print their difference and mention the paths with the highest and lowest sum out of all) Marks Division: Menu = 1 Mark > Display tree = 1 Marks ➤ Number of nodes less than root node = 2 Mark ▸ Root to Leaf = 3 Marks Print Difference = 3 Marks
Write Code in C++ Language
Create a Menu based program which should exit when user presses o. Your code should perform the following functions.
Press 1 to display the tree.
Press 2 to display the total number of nodes lesser than root node. Press 3 to print all paths from root to leaf node.
Press 4 to print difference (Tell which path has the highest sum and which has the lowest sum, print their difference and mention the paths with the highest and lowest sum out of all)
Task: Create a Menu based program which should exit when user presses O. Your codeshould perform the following functions. Press 1 to display the tree. Press 2 to display the total number of nodes lesser than root node. Press 3 to print all paths from root to leaf node. Press 4 to print difference (Tell which path has the highest sum and which has the lowest sum, print their difference and mention the paths with the highest and lowest sum out of all) Marks Division: Menu = 1 Mark > Display tree = 1 Marks ➤ Number of nodes less than root node = 2 Mark ▸ Root to Leaf = 3 Marks Print Difference = 3 Marks