A robust menu-driven financial utility for high-precision Simple and Compound Interest calculations, developed using Bash Shell Scripting and the bc (Basic Calculator) engine.
Authors · Overview · Features · Structure · Quick Start · Usage Guidelines · License · About · Acknowledgments
Terna Engineering College | Computer Engineering | Batch of 2022
![]() Amey Thakur |
![]() Hasan Rizvi |
Special thanks to Hasan Rizvi for his meaningful contributions, guidance, and support that helped shape this work.
The Simple and Compound Interest Calculator is a shell script-based application designed to perform essential financial computations directly from the terminal. Developed as part of the Operating System Laboratory coursework, this project demonstrates the power of shell scripting for mathematical logic, user interaction, and process control.
It provides a user-friendly menu-driven interface to calculate simple interest, compound interest, and total amounts based on user-defined principal, rate, and time parameters.
Tip
Technical Customization
The calculation precision can be adjusted by modifying the scale variable in the bc commands (Line 54, 108). Increasing the scale allows for greater accuracy in complex compound interest simulations and financial modeling.
| Feature | Description |
|---|---|
| Interactive Menu | Simple, text-based navigation for selecting calculation types |
| Input Validation | Ensures robust handling of user inputs |
| Precision | Accurate floating-point calculations using bc (Basic Calculator) |
| Dual Mode | Supports both Simple Interest and Compound Interest formulas |
- Language: Shell Script (Bash)
- Environment: Linux / Termux
- Utility:
bc(Basic Calculator)
SIMPLE-AND-COMPOUND-INTEREST-CALCULATOR/
│
├── docs/ # Formal Documentation
│ └── SPECIFICATION.md # Technical Architecture & Spec
│
├── Mini-Project/ # Documentation & Reports
│ └── Compound and Simple Interest Calculator Report.pdf # Technical Report (PDF)
│
├── Source Code/ # Shell Script Logic
│ └── Simple_&_Compound_Interest_Calculator.sh # Core Calculation Script (Bash)
│
├── .gitattributes # Git Line Ending Configuration
├── .gitignore # Git Ignore Rules
├── CITATION.cff # Citation Metadata
├── codemeta.json # Project Metadata (JSON-LD)
├── LICENSE # MIT License
├── README.md # Project Documentation
└── SECURITY.md # Security Policy & Posture
- Bash Shell: Version 4.0 or higher is recommended for optimal compatibility.
- bc Utility: The standard Unix arbitrary precision calculator utility (
bc) must be installed for floating-point calculation. - Environment: Compatible with any POSIX-compliant terminal, including Linux distributions, macOS, and Termux on Android.
Warning
Dependency Requirement
This utility relies on the bc (Basic Calculator) package for floating-point arithmetic. If execution fails with a "command not found" error, ensure bc is installed (sudo apt install bc on Debian/Ubuntu or pkg install bc on Termux).
-
Clone the Collection
Retrieve the localized repository using the following Git command:git clone https://github.com/Amey-Thakur/SIMPLE-AND-COMPOUND-INTEREST-CALCULATOR.git cd SIMPLE-AND-COMPOUND-INTEREST-CALCULATOR -
Environment Configuration
Ensure the script has the necessary execution permissions within your shell environment:chmod +x "Source Code/Simple_&_Compound_Interest_Calculator.sh" -
Execution
Initialize the interactive terminal menu to begin financial calculations:bash "Source Code/Simple_&_Compound_Interest_Calculator.sh"
This repository is openly shared to support learning and knowledge exchange across the academic community.
For Students
Use this mini-project as a reference for understanding Bash shell scripting, high-precision arithmetic using the bc engine, and interactive menu-driven logic design. The source code is documented to support self-paced learning and exploration of terminal-based financial tools.
For Educators
This project may serve as a practical example or supplementary teaching resource for Operating System courses (CSC405 / CSL404). Attribution is appreciated when utilizing content.
For Researchers
The documentation and organization provide insights into academic project curation and educational software structuring.
This repository and all linked academic content are made available under the MIT License. See the LICENSE file for complete terms.
Note
Summary: You are free to share and adapt this content for any purpose, even commercially, as long as you provide appropriate attribution to the original author.
Copyright © 2020 Amey Thakur, Hasan Rizvi
Created & Maintained by: Amey Thakur & Hasan Rizvi
Academic Journey: Bachelor of Engineering in Computer Engineering (2018-2022)
Institution: Terna Engineering College, Navi Mumbai
University: University of Mumbai
This project features the Simple and Compound Interest Calculator, a terminal-based financial utility developed as a 4th-semester mini-project for the Operating System Laboratory course. It showcases the practical application of Bash shell scripting, high-precision arithmetic using the bc engine, and interactive menu-driven logic design.
Grateful acknowledgment to Hasan Rizvi for his pivotal role and collaborative excellence during the development of this project. His technical expertise in Shell Scripting, logic development, and dedicated commitment to software quality were fundamental in bringing this calculator utility to life. This technical record serves as a testament to his scholarly partnership and significant impact on the final implementation.
Special thanks to the faculty members of the Department of Computer Engineering at Terna Engineering College for their guidance during the course of this project. Gratitude is also extended to the mentors and peers who supported this learning endeavor.
Authors · Overview · Features · Structure · Quick Start · Usage Guidelines · License · About · Acknowledgments
🔬 Operating System Lab · 💻 SIMPLE-AND-COMPOUND-INTEREST-CALCULATOR
Computer Engineering (B.E.) - University of Mumbai
Semester-wise curriculum, laboratories, projects, and academic notes.

