A C program that calculates Simple Interest and Compound Interest with transaction logging, demonstrating core banking software principles.
Here's a quick look at the program in action:
This is the content of the record.txt file after running the program. It logs the calculations, including the inputs, the interest type being calculated, and the final results
- Dual Calculation Modes
- Simple interest.
- Compound interest (supports custom compounding frequencies).
- Transaction Logging
- Automatically saves all transactions to
record.txt.
- Automatically saves all transactions to
- Input Validation
- Ensures valid inputs and prevents negative values.
- GCC compiler (
gcc --versionto verify). - A terminal (Linux/macOS or Windows WSL).
- Visual Studio Code text editor (optional).
git clone https://github.com/nevinbeno/Interest-Calculator.git #clone repository
cd Interest-Calculator- Open Terminal:
- Compile:
gcc InterestCalculator.c -o InterestCalculator -lm # math.h requires lm flag- Run
./InterestCalculator- Open integrated terminal in Visual Studio Code.
- Compile
gcc InterestCalculator.c- Run
./InterestCalculator
- Implements RBI-compliant interest calculations
- Demonstrates financial transaction logging
- Shows robust input validation techniques

