Reconciliation is a common accounting task. Basically it is comparing 2 lists of numbers to see if they match. A problem that can arise is when one of the lists has aggrageted values. In such a case the task becomes more difficult as it requires to find which numbers make up each aggrageted sum. This problem is also know as the subset sums probelm, and is NP-complete. The goal of this program is to make it easy and fast to determine which numbers sum to which sums.
-
Prepare two .txt files:
numbers.txt
: Contains individual transaction amounts (one per line)sums.txt
: Contains aggregated totals (one per line)
-
Run the program from the terminal:
./bin/main numbers.txt sums.txt
numbers.txt:
100.50
200.75
150.25
300.00
-73.84
sums.txt:
301.25
450.25
-900.00
- C++ compiler (e.g., g++, clang++)
-
Using a C++ compiler directly:
g++ -o bin/main main.cpp
-
Using VSCode:
- Open the project in VSCode
- Run the build task (usually Ctrl+Shift+B or Cmd+Shift+B)
- Find all possible solutions
- Add support for currency symbols
- Create a graphical user interface for easier use
Contributions are welcome! Please feel free to submit a Pull Request.
This project is open source and available under the MIT License.