diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e8046b81b2..a086fa4775 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1 +1 @@ - All contributions, bug reports, bug fixes, documentation improvements, enhancements, and ideas are welcome. +All contributions, bug reports, bug fixes, documentation improvements, enhancements, and ideas are welcome. diff --git a/simple-interest.sh b/simple-interest.sh index 27a60fcb55..15e1e4b5e7 100755 --- a/simple-interest.sh +++ b/simple-interest.sh @@ -1,26 +1,28 @@ -#!/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. + #!/bin/bash + # This script calculates simple interest given principal, + # annual rate of interest and time period in years. -# Author: Upkar Lidder (IBM) -# Addtional Authors: -# + # Do not use this in production. Sample purpose only. -# Input: -# p, principal amount -# t, time period in years -# r, annual rate of interest + # Author: Upkar Lidder (IBM) + # Additional Authors: + # -# Output: -# simple interest = p*t*r + # Input: + # p, principal amount + # t, time period in years + # r, annual rate of interest -echo "Enter the principal:" -read p -echo "Enter rate of interest per year:" -read r -echo "Enter time period in years:" -read t + # Output: + # simple interest = p*t*r -s=$(expr $p \* $t \* $r / 100) -echo "The simple interest is: " -echo $s + 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 \ No newline at end of file