cs130-w21 / dots-ios

Team 8 - Available on the App Store!
https://apple.co/2O5rYxs
Apache License 2.0
8 stars 2 forks source link

Settle bills #36

Closed lynnozhang7 closed 3 years ago

lynnozhang7 commented 3 years ago

Added a function that calculates how bills should be settled based on the current bills. It returns a list of tuples, where each tuple has a creditor, a debtor, and the amount to be paid. The creditor and debtor is a number between 0 and 9, based on the index of the participants. The amount to be paid is a double.