BasicBasics & Math10 points
Restaurant bill with GST and tip
A restaurant app splits the bill between friends. The bill amount gets 17% GST added, then the total is split equally between the people at the table.
Task: read two lines: the bill amount (a number, may have decimals) and the number of people (an integer). Print how much each person pays, rounded to 2 decimal places (always show 2 decimals).
Sample tests
Input
5000 4
Expected output
1462.50
Input
1250.50 3
Expected output
487.69
Your answer is also checked against 2 hidden tests.
Python 3
10 pts
Loading editor...
Log in or create a free account to run your code, submit and earn points.
Run your code to see the output here. Ctrl + Enter also runs it.
