subject
Mathematics, 04.05.2021 06:10 relliott4950

Problem: Write a method that will sum all digits of a number and replace the number with its digit sum. Data: A list containing 0 or more values. The list will not point at null. All numbers will be positive.

Output: All numbers will be replaced by their digit sum.

Help: The method for this problem does not return nor print anything. Yoiu must change the values in the list that was passed in.

Starting List
1, 212, 333, 49
99, 453
213

Ending List
1, 5, 9, 13
18, 12
6

I need this in java with arraylists.

ansver
Answers: 3

Another question on Mathematics

question
Mathematics, 21.06.2019 13:20
Which equation and solution can be used to solve this problem? thirteen less than a number is sixteen. 13-n=16: add 13 to both sides. the answer is 29. n+13=16: subtract 13 from both sides. the answer is 3. n+16=13 subtract 13 from both sides. the answer is 3. n-13=16: add 13 to both sides. the answer is 29.
Answers: 1
question
Mathematics, 21.06.2019 14:30
Which functions are even? check all of the boxes that apply. f(x) = x4 – x? f(x) = x2 – 3x + 2 f(x) = (x - 2) f(x) = x done
Answers: 3
question
Mathematics, 21.06.2019 18:00
Manny bought 12 pounds of vegetables at the supermarket. 75% of the vegetables were on sale. how many pounds of vegetables were not on sale? 98 points : )
Answers: 2
question
Mathematics, 22.06.2019 00:00
Mrs. blake's bill at a restaurant is $42.75. she wants to leave the waiter an 18% tip. how much will she pay in all, including the tip?
Answers: 2
You know the right answer?
Problem: Write a method that will sum all digits of a number and replace the number with its digit s...
Questions
question
Mathematics, 04.07.2021 14:00
question
Geography, 04.07.2021 14:00
question
World Languages, 04.07.2021 14:00
question
Mathematics, 04.07.2021 14:00
question
Biology, 04.07.2021 14:00
question
Social Studies, 04.07.2021 14:00
question
Mathematics, 04.07.2021 14:00
Questions on the website: 13722363