From 165924256d216c44372c093ab64b4361523894c2 Mon Sep 17 00:00:00 2001 From: Michael Aimer Villanueva Date: Thu, 27 Feb 2025 17:20:47 +0800 Subject: [PATCH 1/2] Footer replace year 2022 to 2023 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b103466139..2a2b1d78df 100644 --- a/README.md +++ b/README.md @@ -13,4 +13,4 @@ Output simple interest = p*t*r ``` -_© 2022 XYZ, Inc._ +_© 2023 XYZ, Inc._ From 1e86362e95e3ac3758b2377280f3b997dd150683 Mon Sep 17 00:00:00 2001 From: Michael Aimer Villanueva Date: Thu, 27 Feb 2025 17:40:40 +0800 Subject: [PATCH 2/2] revert --- CONTRIBUTING.md | 2 +- README.md | 2 +- simple-interest.sh | 44 +++++++++++++++++++++++--------------------- 3 files changed, 25 insertions(+), 23 deletions(-) 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/README.md b/README.md index 2a2b1d78df..b103466139 100644 --- a/README.md +++ b/README.md @@ -13,4 +13,4 @@ Output simple interest = p*t*r ``` -_© 2023 XYZ, Inc._ +_© 2022 XYZ, Inc._ 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