Question: Here is a recommended skeleton of the algorithm to solve this problem 1. Display welcome message/welcome banner 2. Prompt user a numbers with at most

Here is a recommended skeleton of the algorithm to solve this problem 1.
Display welcome message/welcome banner
2. Prompt user a numbers with at most 7 digits
3. Calculate the summation of digits. Hint: You will need to use integer division and modulo to solve this problem (% and /).
4. Calculate the divisors of the number you calculated for the sum and print them one by one.
5. Ask the user if they want to try another addition. o If yes repeat from step 2 o If no display a closing message
You are asked to write a Java program, which first calculates and prints out the sum of the digits of a number with at most 7 digits. Then it prints out all the divisors of the sum number that is calculated in the previous step Below is a sample output screen to illustrate the expected behaviour of your program. Your output does not need to be formatted in exactly the same way. Just make sure the required information appears Note; user input is highlighted in green Welcome to our Calculation Program! Enter a number with at most 7-digits: 1259955 sum of the digits of 1259955 is: The divisors of 36 are as follows: 36 1 2 3 4 6 9 12 18 36 Do you want to try another number? (yes to repeat, no to stop) yes Enter a number with at most 7-digits: 125 Sum of number digits is: 8 The divisors of 8 are as follows: 1 248 Do you want to try another number? (yes to repeat, no to stop) ho Thanks and Have a Great Day
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
