about | help | code help+videos | done | prefs |
Calculate the cost of lunch for the given number of people. The lunch special is fifteen dollars per person. Otherwise, lunch is 20 dollars per person. lunchBill(2, true) → 30 lunchBill(5, false) → 100 lunchBill(6, true) → 90 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 115 Post-solution available
Copyright Nick Parlante 2017 - privacy