Your first lab
Restaurants expect a tip on the bill. Build the calculator a cashier would use — it combines variables, maths and rounding.
Given for you
bill— the total on the receipttip_percent— the percentage to tip
Your program should print three lines:
- the tip amount, rounded to 2 decimals
- the total to pay, rounded to 2 decimals
- what each of 3 friends owes if the bill is split evenly, rounded to 2 decimals
Tip: build the values in named variables first (tip, total, per_person) — the autograder looks them up by name, and so will you when you read your code tomorrow.