Skip to content

NishchayKQ/divider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Helps a group of people divide expenses they spent on a trip.

It takes in number of people, their name, amount each paid.

This program then calculates

Transactions to settle Dues

provides instructions on how each person can pay or receive money from others to settle their dues with minimum number of transactions. such that everyone pays equal amount

per head cost

trip total

Usage

paste on terminal , note: python 3 is needed
python div.py

Sample Output

example 1

example 2