Computers and Technology
PLEASE HELP!! USE C++ PLEASE!!Make a program that asks the user for an integer greater than zero (make sure that its greater than zero), then checks whether or not that number is a happy number (explanation below). For this program, you must use at least one recursive function to help determine whether or not the number is a happy number. To determine whether or not a number is a happy number, you take the sum of the squares of its digits. Then you take that sum, and you find the sum of the squares of its digits. You repeat this process until you end up at 1, which means its a happy number, or until you get stuck in a repeating cycle, which means its not a happy number. The repeating cycle is always 41637588914542204 To summarize, find the sum of the squares of the digits until the sum is equal to either 1 (happy number) or 4 (not happy number). The first 10 happy numbers are: 1, 7, 10, 13, 19, 23, 28, 31, 32, and 44 Example: 7349+9=5825+64=8964+81=1451+16+25=4216+4=204 73 makes it to 4, so 73 is not a happy number. 329+4=131+9=101+0=1 32 makes it to 1, so 32 is a happy number.