Menu
support@authoritypapers.com
+1(805) 568 7317

problem 4 15 points write a program that that asks the user to input a positive inte 5153440

Problem 4. (15 points) Write a program that that asks the user to input a positive integer number and displays the sum of the

Problem 4. (15 points) Write a program that that asks the user to input a positive integer number and displays the sum of the digits of the input number and its reverse. Your program should have the following 3 functions (procedures) 1) int readNum () to take a valid number (greater than 0) from the user. This function has no input and returns a valid integer number entered by the user 2) int sumDigits (int num) to take an integer number as an input and return the sum of digits of the input number. 3) int reverse (int rev) to take an integer number as an input and return an integer number that represents the reverse of the given number. A Sample interaction is as follow Please enter a positive integer number: -365 Invalid Input. Please enter a positive integer number: 117 Sum of digits of 117 is 9 Reverse of 117 is 711

"Order a similar paper and get 15% discount on your first order with us
Use the following coupon
"GET15"

Order Now