147k views
2 votes
Alma was given some money as a gift and deposited it into a savings account. She makes a withdrawal of the same amount at the end of each month. At the end of the 5th month, her balance was $442. At the end of the 13th month, her balance was $226.

Alma was given some money as a gift and deposited it into a savings account. She makes-example-1

2 Answers

5 votes

Answer:

Input: The number of months

Output: The balance in the account

3: (5, 442), (13, 226)

Explanation:

Had to take one for the team, man

User ThisIsWilliam
by
6.8k points
1 vote

Answer:

1. Input = $ 577

2.Output = $ 226

Explanation:

Thinking process:

Let the amount drawn between the 5th month and the 13 th month be x

From the 5th to 13 th month are 8 months.

Therefore, the difference will be $ 442 - $ 226 = $ 216

This amount is distributed over 8 months so each month Alma withdraws:
($216)/(8) = $ 27.00

In the meantime, the 5th month, the money withdrawn will be: $ 442 + (5×$ 27.00) = $ 577.00

The output will be $ 216. This is the amount remaining after all the withdraws.

User Mar Cial R
by
6.7k points