fix(curriculum): specify which rounding in Budget App (#64917)

Co-authored-by: Shivansh <shivanshsharma76789@gmail.com>
This commit is contained in:
Shivansh Sharma
2026-01-02 08:58:28 +01:00
committed by GitHub
co-authored by Shivansh
parent 6ec4ac52c3
commit fe1256b2d6
@@ -55,7 +55,7 @@ In this lab, you will build a simple budget app that tracks spending in differen
1. You should have a function outside the `Category` class named `create_spend_chart(categories)` that returns a bar-chart string. To build the chart:
- Start with the title `Percentage spent by category`.
- Calculate percentages from withdrawals only and not from deposits. The percentage should be the percentage of the amount spent for each category to the total spent for all categories (rounded to the nearest 10).
- Calculate percentages from withdrawals only and not from deposits. The percentage should be the percentage of the amount spent for each category to the total spent for all categories (rounded down to the nearest 10).
- Label the y-axis from `100` down to `0` in steps of 10.
- Use `o` characters for the bars.
- Include a horizontal line two spaces past the last bar.