This project provides a simple interest calculator that computes the simple interest based on the principal amount, annual rate of interest, and time period in years.
- Simple Interest Calculation: Computes simple interest using the formula:
simple interest = principal × time × rate
- Compound Interest Calculation: Computes compound interest using the formula:
compound interest = principal × (1 + rate)^time - principal
-
Simple Interest Calculation:
- Script:
simple-interest.sh
- Usage: Run the script and input the principal amount, time period in years, and annual rate of interest when prompted.
- Example:
Input:
./simple-interest.sh
Output:Enter the principal amount: 1000 Enter the time period in years: 5 Enter the annual rate of interest: 5
The simple interest is: 250
- Script:
-
Compound Interest Calculation:
- Script:
compound_interest.py
- Usage: Run the script and input the principal amount, time period in years, and annual rate of interest when prompted.
- Example:
Input:
python compound_interest.py
Output:Enter the principal amount: 1000 Enter the time period in years: 5 Enter the annual rate of interest: 5
The compound interest is: 276.28
- Script:
This project is licensed under the Apache-2.0 License. See the LICENSE file for more details.
Please refer to the CODE_OF_CONDUCT.md file for the code of conduct guidelines.
Contributions are welcome! Please read the CONTRIBUTING.md file for guidelines on how to contribute to this project.