subject
Mathematics, 04.05.2021 06:30 seasmarie75

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 18:00
If f(x) = 4x โ€“ 3 and g(x) = 8x + 2, find each function value a.f[g(3)] b.g[f(5)] c.g{f[g(-4)]}
Answers: 3
question
Mathematics, 21.06.2019 20:00
Simplify (2^5/3^2)^4 a. 2^20/3^8 b. 2^9/3^8 c. 8^5/12^2 d. 2/3^2
Answers: 1
question
Mathematics, 21.06.2019 22:00
Which of the following graphs could represent a cubic function?
Answers: 1
question
Mathematics, 21.06.2019 22:40
Which of the following functions corresponds to the above sinusoid? a. 10 cos ฯ€x - 5 b. -5 sin x - 5 c. -10 cos ฯ€x/2 - 0.5 d. 10 sin ฯ€x - 5
Answers: 1
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, 26.02.2022 07:20
Questions on the website: 13722367