mirror of
https://github.com/dholerobin/Lecture_Notes.git
synced 2025-09-13 13:52:12 +00:00
Add all my notes
This commit is contained in:
55
imperfect_notes/pragy/Machine Coding Splitwise.md
Normal file
55
imperfect_notes/pragy/Machine Coding Splitwise.md
Normal file
@@ -0,0 +1,55 @@
|
||||
Machine Coding Splitwise
|
||||
------------------------
|
||||
|
||||
Create Splitwise
|
||||
----------------
|
||||
|
||||
- Has everyone used splitwise?
|
||||
- Social expense management app
|
||||
- Simplifies bookkeeping amongst groups
|
||||
|
||||
- start coding? yay? \o/
|
||||
- no. Requirements first
|
||||
|
||||
Requirements
|
||||
------------
|
||||
|
||||
> - A user can add an expense. While adding the expense, the amount can be split amongst any other users
|
||||
> - Expense can be of 3 types
|
||||
> - split equally
|
||||
> - take care of missing money
|
||||
> - unequal: value
|
||||
> - unequal: percentage
|
||||
> - The total expense must add up to 100% (or the total money value)
|
||||
> - Proper validation must be done for the expense
|
||||
> - 2 decimals, because currency
|
||||
> - 2 decimals for % as well
|
||||
> - Users must have their details
|
||||
> - Show expenses of user
|
||||
> - show balance report of all users
|
||||
> - Show balance report of a user against all users
|
||||
> - don't show user if s/he has 0 balance against a user
|
||||
>
|
||||
|
||||
|
||||
Input format
|
||||
------------
|
||||
|
||||
> - record expense
|
||||
> - who_paid
|
||||
> - people in the group
|
||||
> - expense type - equal/exact/percent
|
||||
> - if expense is unequal - the values
|
||||
> - show all - current balances
|
||||
> - show userid - current balance
|
||||
> - passbook userid - history
|
||||
> - simplify expenses
|
||||
>
|
||||
> a -100-> b
|
||||
> b -100-> c
|
||||
>
|
||||
> a -100-> c
|
||||
>
|
||||
|
||||
Output format
|
||||
-------------
|
Reference in New Issue
Block a user