The total bill comes to $10 + $13 + $17 = $<<10+13+17=40>>40.
The total gratuity earned comes to $40 * 0.1 = $<<40*0.1=4>>4
#### 4