Budget App project

Hello,

I have successfully created the class and associated methods as described in the project details. I am not clear on the last part where we create the bar chart for the expenses. I am confused: I understand the function must calculate the percentage spent in each category. Against what do I calculate the percentage spend? Against the ledger that reads, “Initial deposits”? If yes, the below line does not make any sense to me.

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

Could somebody please clarify?

It is the percent spent in a category, rounded down to the nearest 10%, of the total amount spent.

Okay. So if I understand it correctly, lets say I have two categories with total sped of 100 and 200 respectively. Then the percentage spend will be calculated as,

category1 = (100/300)*100 = 30% (nearest 10%)
category2 = (200/300)*100 = 70% (nearest 10%)

Did I get this right?

Rounded down to the nearest 10%. So 30% and 60%. But otherwise, that’s it.