This repository contains all the required files for the final project of the Coursera course on Git and GitHub. It includes essential community health files and a functional shell script as specified in the assignment tasks.
This project includes the following files:
LICENSE
: The Apache 2.0 license governing the project.README.md
: This file, providing an overview of the project.CODE_OF_CONDUCT.md
: Guidelines for community interaction.CONTRIBUTING.md
: Instructions for contributing to the project.simple-interest.sh
: A shell script to calculate simple interest.
The simple-interest.sh
script calculates the simple interest given the principal amount, annual interest rate, and time period in years.
You need a Unix-like environment (like Linux, macOS, or Windows Subsystem for Linux) with bash
and bc
installed.
-
Clone the repository:
git clone <your-repository-url> cd <repository-name>
-
Make the script executable:
chmod +x simple-interest.sh
-
Run the script with the required arguments:
./simple-interest.sh <principal> <rate> <time>
<principal>
: The initial amount of money.<rate>
: The annual interest rate (in percent).<time>
: The time period in years.
./simple-interest.sh 1000 5 2