Tip calculator
Work out the tip and what each person owes · Tool ●○○
Change these if you like
Prompt
Make a tip calculator. Make it a single HTML file that opens in a browser with nothing to install and no other files. Put the CSS and JavaScript inside it. Do not use image files or any external address; use emoji or letters if you need a symbol. I type the bill in dollars. Show the tip at 15% with buttons to change it quickly, and a slider for anything in between. Show three numbers big and clear: the tip, the total, and the amount each person owes. Let me set how many people are splitting it. Round each person's share up to a sensible amount and show the leftover, so the group does not end up a coin short. When you are done, check the split with an awkward number of people and confirm the shares add up to at least the total.
What it uses: One file only · Say what it is first · Decide what shows
If the shares do not add up, ask it to "round each share up and show the difference".
Paste what came back
You might also like