diff --git a/README.md b/README.md index b103466..41f7323 100644 --- a/README.md +++ b/README.md @@ -13,4 +13,4 @@ Output simple interest = p*t*r ``` -_© 2022 XYZ, Inc._ +_© 2023 XYZ, Inc._ _Changed to 2023 although current year is 2025 _ diff --git a/bug-fix-typo b/bug-fix-typo new file mode 100644 index 0000000..fbb73b5 --- /dev/null +++ b/bug-fix-typo @@ -0,0 +1,25 @@ +#!/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/100 + +echo "Enter the principal:" +read p +echo "Enter rate of interest per year:" +read r +echo "Enter time period in years:" +read t + +s=$(echo "scale=2; $p * $t * $r / 100" | bc) +echo "The simple interest is: $s"