Question: Plz make an algorithm for this . Exercise to be Evaluated a. Create a new class called SummingDigits b. You are to write a program

Plz make an algorithm for this
 Plz make an algorithm for this . Exercise to be Evaluated

. Exercise to be Evaluated a. Create a new class called SummingDigits b. You are to write a program that will ask the user to enter a 4 digit integer. You will then need to sum the digits of the number. c Example: if you enter 3958, then you will need to add the numbers 3 9+ 5 8-25. d. To separate out the digits, you can use simple math operators such as addition, subtraction, division, and modulus. e. Your output should look exactly like the following C:\Program FilesJava1jdk1.8.0 144bin\java". Enter a 4 digit number: 9876 The sum of the digits of the number 9876 1s 9+8+76 30 Process finished with exit code Remember to include a header in your code with your name, description of the program, and date g. You must have at least 3 comments. h. Make sure your output format matches the above exactly

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!