https://github.com/prirai/ltcg-tax-calculator
Calculates growth price based on yearwise inflation rates using the previous regime as well as using LTCG
https://github.com/prirai/ltcg-tax-calculator
inflation-calculator ltcg tax
Last synced: 11 days ago
JSON representation
Calculates growth price based on yearwise inflation rates using the previous regime as well as using LTCG
- Host: GitHub
- URL: https://github.com/prirai/ltcg-tax-calculator
- Owner: prirai
- Created: 2024-08-29T19:56:55.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-02-15T16:09:07.000Z (4 months ago)
- Last Synced: 2025-05-19T05:07:08.073Z (about 1 month ago)
- Topics: inflation-calculator, ltcg, tax
- Language: C++
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LTCG Tax Calculator
## Instructions for running
- Running `make` or `make all` will compile both the versions of the program, i.e `ltcg_debug` meant for debugging using -g flag and `ltcg_optimized` compiled using O2 flag.
- Running `make clean` will clean up the executables.
- The file `main.cpp` contains the source of the program and `ltcg_debug` and `ltcg_optimized` are the executables.
- The input file used for the program is `price-inflation.csv` which must be in the same directory as the executables.
## References Used
- std::setprecision: [CPP Reference - setprecision](https://en.cppreference.com/w/cpp/io/manip/setprecision)
- std::fixed: [CPP Reference - fixed](https://en.cppreference.com/w/cpp/io/manip/fixed)
- std::runtime_error: [CPP Reference - runtime_error](https://en.cppreference.com/w/cpp/error/runtime_error)
- std::string: [CPP Reference - string](https://en.cppreference.com/w/cpp/string/basic_string)
- std::ifstream: [CPP Reference - ifstream](https://en.cppreference.com/w/cpp/io/basic_ifstream)