Re budget_app specs. Feedback for project creators

Re: budget-app

Observations for the specifications of the "budget’ Codecamp project.

(1) The specs are not completely clear on the percentage calculation.
(2) Transfers ought not be treated as withdrawals.

Author: Repl user ProfBrockway.

(1) Being a bit dense I wasn’t clear what percentage was being calculated.

The specs read:

"The chart should show the percentage spent in each category passed in to the function. The percentage spent should be calculated only with withdrawals and not with deposits. "

This may reasonably be interpreted in several ways:
By example:
- What percentage of the food category was spent ?
- What percentage of all spending is the spending on food ?
- What percentage of all deposits is the spending on food ?

I enjoyed trying all 3. It was a great project.
But an unambiguous specification may help overthinkers like me.

(2) Transfers should be excluded from the spending totals.

The specs read:

“The percentage spent should be calculated only with withdrawals and not with deposits.”

I feel we should exclude transfers from the withdrawals totals.
A transfer is not a withdrawal.
Transferring (say) $100 dollars from the food account is NOT spending on food.
The title is ‘Percentage Spent’ and transfers are not spending.

Be this as it may my code filters out transfers from the withdrawal totals.
Should I leave it that way ?

(3) Many thanks for a probing and interesting project.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.