• you've finished eating at a restaurant and received this bill:
    • cost: $44.50
    • restaurant tax: 6.75%
    • tip: 15%
  • declare the value "meal" and assign it a variable "44.50"
  • declare the value "tax" and assign it a variable "0.0675"
  • tip = 0.15
  • reassign
    • meal = meal + meal*tax
    • total = meal + meal*tip
nov 28 2014 ∞
apr 19 2015 +