Beginner studio project
Profit calculator
A Kumasi snack vendor needs to distinguish revenue from profit for a market day.
1 · Set the requirements
Units sold, selling price, unit cost and fixed costs in GHS; allow a loss; label every input and result.
2 · Make a paper fixture
Write the rule: profit equals units times the difference between price and unit cost, minus fixed costs.
3 · Build one working slice
Create a GHS profit calculator that separates fixed and variable costs, validates nonnegative inputs, and shows a loss in words as well as colour.
4 · Compare your output
A breakdown of sales, costs and profit or loss, not merely one unexplained number.
5 · Run the acceptance test
For 10 units at GHS 5 with unit cost GHS 3 and fixed cost GHS 25, expect a GHS 5 loss. Zero sales must still include fixed costs.
6 · Stage the demo
Stage the calculator with the sample scenario documented; rerun the loss case from its preview URL. To preview from your project folder with Python installed, run python -m http.server 8000 --bind 127.0.0.1 and open http://127.0.0.1:8000/. Stop with Ctrl+C. No public deployment is needed.
Project assessment
Private to this browser profile. Use practice data only; notes are not encrypted. Each note needs at least four words and 20 characters.