Instruction
Write a program that prompts the user to enter a positive integer and then compute the sum of all the digits of the number, maximum of all the digits and minimum of all the digits. For example if the user enters 2784, then the program reports 21, 8, and 2. The program should work for any number of digits up to ten.
Submit the program with:
1. Statement of the problem (as given above)
2. Program Design; use three functions 1) for finding sum of digits, 2) maximum of the digits and 3) for minimum of the digits(with hierarchy chart, showing the tree structure of how main function calling these function. In this case it is very simple mainI() calls rest of the functions)
3. Compilation results (Get a screen shot and paste it to MSWORD file)
4. Show the results (Get a screen shot and paste it to MSWORD file)
5. Conclusions
Submit the assignment by dropping the MS word file in the drop box.