diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md deleted file mode 100644 index 8b13789..0000000 --- a/CODE_OF_CONDUCT.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/simple-interest.sh b/simple-interest.sh new file mode 100644 index 0000000..bdd705e --- /dev/null +++ b/simple-interest.sh @@ -0,0 +1,22 @@ + #!/bin/bash + # This script calculates simple interest given principal, + # annual rate of interest and time period in years. + # Do not use this in production. Sample purpose only. + # Author: Upkar Lidder (IBM) + # Additional Authors: + # + # Input: + # p, principal amount + # t, time period in years + # r, annual rate of interest + # Output: + # simple interest = p*t*r + echo "Enter the principal:" + read p + echo "Enter rate of interest per year:" + read r + echo "Enter time period in years:" + read t + s=`expr $p \* $t \* $r / 100` + echo "The simple interest is: " + echo $s