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
Someone answer this asap rn for ! a discount store’s prices are 25% lower than department store prices. the function c(x) = 0.75x can be used to determine the cost c, in dollars, of an item, where x is the department store price, in dollars. if the item has not sold in one month, the discount store takes an additional 20% off the discounted price and an additional $5 off the total purchase. the function d(y) = 0.80y - 5 can be used to find d, the cost, in dollars, of an item that has not been sold for a month, where y is the discount store price, in dollars. create a function d(c(x)) that represents the final price of an item when a costumer buys an item that has been in the discount store for a month. d(c(x)) =
Answers: 2
question
Mathematics, 21.06.2019 20:30
2. explain in words how you plot the point (4, −2) in a rectangular coordinate system.
Answers: 1
question
Mathematics, 21.06.2019 20:30
What is always true when two whole numbers are subtracted?
Answers: 1
question
Mathematics, 21.06.2019 23:00
What is the value of n in the equation -1/2(2n+4)+6=-9+4(2n+1)
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, 10.11.2020 22:30
question
Mathematics, 10.11.2020 22:30
Questions on the website: 13722360