<project · beginner>
Tip calculator
Enter a bill, pick a percentage and split it between friends.
Build tip calculator one manageable milestone at a time. Keep your decisions, tests and finished work together so your portfolio shows what you learned, not only the final result.
- Mobile UI
- Numeric validation
- State
- Unit tests
Build it step by step
Set up the app
Use Flutter or a free local React Native setup and choose one for this project. Sketch bill, tip percentage, people count and per-person totals.
Validate amounts
Reject negative bills, invalid numbers and a people count below one. Store money in integer minor units or use a decimal library to avoid floating-point surprises.
Calculate the split
Separate calculation from screen code. Show tip, total and per-person amount with a documented rounding policy for uneven splits.
Polish the screen
Use labelled numeric inputs, touch-friendly controls and a readable summary. Keep totals visible when the on-screen keyboard opens.
Test the maths
Cover zero tip, one person, an uneven split and invalid input. Try both a narrow phone and a larger simulator screen.
Share your finished work
Commit your source and a README explaining setup, decisions, tests and limitations. Remove secrets and personal data, credit dependencies and assets, then add the public repository or portfolio link and an optional working demo to LEARN Showcase. Hosting is optional; a clear repository or design case study is enough.
// done when
- Zero tip works correctly
- People count cannot be zero
- Rounding is consistent
- Totals remain visible with the keyboard open
- README includes setup, credits and limitations; shared links are safe and accessible
// stretch goals
- Add custom tip presets
- Support a second currency
Finished? Show it off
Add your project to the LEARN showcase so other learners and employers can see it.
Sign in to add your finished project to the showcase.