Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
. 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started