What is vibe coding?
Choose a first project you can finish
Plan the calculator before building
Give the builder a clear brief
Build a single-page cost-per-item calculator. Inputs: materials cost in naira, packaging cost in naira, quantity. Formula: (materials + packaging) / quantity. Require non-negative costs up to ₦1 billion each and a whole quantity from 1 to 1,000,000. Reject blank, negative and invalid inputs with a useful message. Show two decimal places. Explain this is cost, not selling price. Use labelled fields, keyboard-accessible controls and a responsive layout. Run in the browser only; no storage, accounts, external scripts, analytics, backend or payments. Do not deploy. Explain how to preview and test it.
Try the worked project
A real browser-only cost calculator. It uses your numbers, not AI. Nothing is saved or sent.
Test normal inputs and awkward ones
The calculator accepts quantity 0 and displays an invalid result. Expected: show a clear error and do not calculate. Please fix this without changing the layout or valid-input behaviour. Then test quantity 0, quantity 5 and a blank quantity, and explain the results.
For your own review. These ticks are not saved or graded.
What happens after the prototype?
Go from a demo to a useful project
Go FurtherOptional challenge. Come back whenever you’re ready.
Add a labour-cost input to your own version. Update the formula and explain why it changes. Re-run every earlier test, then test labour = 0 and labour = 500. For materials 1,200, packaging 300, labour 500 and quantity 5, the new result should be ₦400. Do not change the example on this page; use it as your comparison baseline.
