Skip to content

Louie-AL/jbbmo-Introduction-to-Git-and-GitHub

 
 

Repository files navigation

Simple Interest Calculator

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.

Table of Contents

Features

  • 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
    

Usage

  1. 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:
      ./simple-interest.sh
      Input:
      Enter the principal amount: 1000
      Enter the time period in years: 5
      Enter the annual rate of interest: 5
      
      Output:
      The simple interest is: 250
      
  2. 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:
      python compound_interest.py
      Input:
      Enter the principal amount: 1000
      Enter the time period in years: 5
      Enter the annual rate of interest: 5
      
      Output:
      The compound interest is: 276.28
      

License

This project is licensed under the Apache-2.0 License. See the LICENSE file for more details.

Code of Conduct

Please refer to the CODE_OF_CONDUCT.md file for the code of conduct guidelines.

Contributing

Contributions are welcome! Please read the CONTRIBUTING.md file for guidelines on how to contribute to this project.

About

Introduction to Git and GitHub

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 54.2%
  • Shell 45.8%