Eating out.
Xola took the sports team he manages out for the evening. The next morning he got these WhatsApps from the restaurant owner.
message 1:
Hi Xola thanks for joining us last night. Your team ate 8 burgers, drank 17 beers and 11 fanta's
message 2:
Please send me the payment via EFT prices are as follows: burgers - 37 each, beers - 12, fanta's 9
Write some functions to calculate how much money Xola should EFT.
Remember to write some tests first.
Also
Your functions should also be able to work out how much Joe should pay.
message 1:
Hi Joe thanks for joining us yesterday. Your team ate 11 pies, drank 17 cokes and 5 pepsi's
message 2:
Please send me the payment via EFT prices are as follows: pies - 19 each, cokes - 11, pepsi's 9