Skip to content

nevinbeno/Interest-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Banking Interest Calculator

A C program that calculates Simple Interest and Compound Interest with transaction logging, demonstrating core banking software principles.

Illustrations

Here's a quick look at the program in action:

Input prompt (terminal view)

This shows the terminal window where the user has provided the necessary inputs

Input Prompt

Record File (record.txt) After Execution

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

record.txt file

Features

  • Dual Calculation Modes
    • Simple interest.
    • Compound interest (supports custom compounding frequencies).
  • Transaction Logging
    • Automatically saves all transactions to record.txt.
  • Input Validation
    • Ensures valid inputs and prevents negative values.

Requirements

  • GCC compiler (gcc --version to verify).
  • A terminal (Linux/macOS or Windows WSL).
  • Visual Studio Code text editor (optional).

Installation & Usage

git clone https://github.com/nevinbeno/Interest-Calculator.git #clone repository
cd Interest-Calculator

Steps to Compile and Run (BASH)

  1. Open Terminal:
  2. Compile:
gcc InterestCalculator.c -o InterestCalculator -lm  # math.h requires lm flag
  1. Run
./InterestCalculator

Using Visual Studio Code (Alternative way)

  1. Open integrated terminal in Visual Studio Code.
  2. Compile
gcc InterestCalculator.c
  1. Run
./InterestCalculator

Applications

  • Implements RBI-compliant interest calculations
  • Demonstrates financial transaction logging
  • Shows robust input validation techniques

About

A C program that calculates Simple and Interest and Compound Interest with transaction logging, demonstrating core banking software principles.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages