Page 1 of 1

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
by answerhappygod
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 Write Code In C Language Create A Menu Based Program Which Should Exit When User Presses O Your Code Should Per 1
Task Write Code In C Language Create A Menu Based Program Which Should Exit When User Presses O Your Code Should Per 1 (34.36 KiB) Viewed 52 times
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