Code Monkey home page Code Monkey logo

money's Introduction

Have you ever asked yourself why can't you pay for your usual morning coffee with a credit card? Credit card payments usually have variable and fixed transaction costs, which means that the merchant has to pay a bigger percentage the smaller the transaction is. This project is meant to solve the problem by basically doing payments virtually until a certain sum is reached (to have fewer transactions - hence fewer fixed transaction fees!).

Money Payments Aggregator to reduce small sum fees

A prototype system in which a group of buyers and sellers create a "pool" to save on credit/debit card transaction fees (the fixed part), thus making micro (sub-dollar) transactions feasible.

Getting Started

This project is written in C++, so it works in all major OSes.

A few details on the reasoning on why I made this are on WHY.MD

Keep in mind it's Google Translated for now, the Italian version is here: WHY_IT.MD

Prerequisites

Just use gcc to compile after cloning this repo

Installing

There are many variables to customize the results

static const int N_b = 100; //Number of buyers
static const int N_s = 10;  // Number of sellers
static const int N_t = 5000;  // Number of transactions a day
static const int DAYS = INFINITY; // Number of days
static const int BUFFER = 80; // Buffer for every transaction
static const int from = 0;
static const int to = 10;

static const double FIXED = 0.1;    // Fixed cost in real money per transaction
static const double VARIABLE = 0.02; // Variable cost of transaction (in percentage)

An example of the result:

vTransactions: 	2049
Transactions: 	79
Total amount: 	10001.2
Total real amount: 	6582.84
Advantage over system: 	96.1445%
Bank balance: 	139.557
Interest rate: 	0.0212001
max spent: 	167.94

Built With

Contributing

The following is a copy of PurpleBooth

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • Pier Carlo Cadoppi - Initial work

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Hat tip to anyone whose code was used
  • Inspiration
  • etc lol

money's People

Contributors

cad0p avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.