Reference no: EM132210364
Question :
Write program in Java to find the sum of n numbers. Your program must use Recursion, The program must ask the user for n. for instance if the user enters n as 5, your program should add up 1 + 2 + 3 + 4 + 5 and then print out the sum.
Write a java program to find n factorial. Program must use Recursion Write a program implementing a binary search tree.
Insert the following values into your Binary Search Tree: 7, 1, 4, 13, 17, 8, 10, 9, 3, 6, 15, 5, 12(7 is the root node)
Output Print out the entire tree using an in order traversal Print out the number of leaf nodes
Find and print the maximum element in the tree.