Files
Tirsvad 5708c4ef55
TirSystem/git-workflows: OpenGrep / opengrep (push) Skipped
TirSystem/git-workflows: Publish wiki / publish-wiki (push) Skipped
TirSystem/git-workflows: Release / release (push) Skipped
TirSystem/git-workflows: Sync GitHub mirror metadata / sync-metadata (push) Skipped
TirSystem/git-workflows: Publish accepted milestones / publish (push) Skipped
TirSystem/git-workflows: Validate / validate (push) Skipped
TirSystem/git-workflows: Release / release (pull_request) Successful in 27s
TirSystem/git-workflows: Validate / validate (pull_request) Successful in 45s
TirSystem/git-workflows: OpenGrep / opengrep (pull_request) Successful in 2m16s
Add project wiki in English, Danish and Malay
2026-11-15 10:06:00 +08:00

46 lines
1.6 KiB
Markdown

# Tip Calculator
🌐 **English** · [Dansk](Home-da) · [Bahasa Melayu](Home-ms)
A beginner-friendly console app that splits a restaurant bill with a tip. It is
Day 2 of the 100 Days of Code course. You type the bill, the tip percentage and
the number of people, and it prints what each person pays.
| Page | Read it when you want to |
| --- | --- |
| [Install](Install) | Set up Python and the project, and check that it works |
| [Usage](Usage) | Run the calculator and see a full example session |
| [How It Works](How-It-Works) | Understand the formula and how the code is organised |
| [Testing](Testing) | Run the unit tests and add a new one |
## At a glance
| | |
| --- | --- |
| Language | Python 3.13 or newer |
| Dependencies | None (standard library only) |
| Start command | `tip-calculator` or `python -m tip_calculator` |
| Tests | `python -m unittest` |
## Repository layout
```
002-tip-calculator/
src/tip_calculator/
calculator.py the calculation, no input or output
main.py the console: asks questions, prints the answer
__main__.py lets you run it with python -m tip_calculator
tests/ unit tests for the calculation
docs/wiki/ this wiki
framework/ the SQA and QC framework (git submodule)
pyproject.toml package metadata and the tip-calculator command
```
## Links
- [Repository][repository]
- [Issue tracker][issues]
[repository]: https://git.tirsystem.com/Tirsvad-Udemy-100-days-of-code/002-tip-calculator
[issues]: https://git.tirsystem.com/Tirsvad-Udemy-100-days-of-code/002-tip-calculator/issues