"""Exercise 18.1.2 — Tip calculator

Chapter 18: Bugs — Everyday Programming

This program should add a 15% tip to a $40 restaurant bill.

This program contains exactly one bug. Solution: sol_18_1_2.py
"""

bill = 40.0
tip_rate = 0.15
total = bill + (bill * tip_rate
print(total)   # expected: 46.0
