From b7bd73e46d2df5e3c7f45b522f70ce4f53f70130 Mon Sep 17 00:00:00 2001 From: Xinke Ren Date: Mon, 14 Jul 2025 15:44:05 -0400 Subject: [PATCH 1/4] fixed typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b103466139..8c8a5c7243 100644 --- a/README.md +++ b/README.md @@ -13,4 +13,4 @@ Output simple interest = p*t*r ``` -_© 2022 XYZ, Inc._ +_© 2023 XYZ, Inc. From 554af27e7731bc67f42fde87642bb1cccfa6af63 Mon Sep 17 00:00:00 2001 From: Xinke Ren Date: Mon, 14 Jul 2025 16:00:37 -0400 Subject: [PATCH 2/4] Revert "fixing typo" This reverts commit 46d3edae49a4f042875150edb056c08519062f91. --- compound_interest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compound_interest.py b/compound_interest.py index 9673a7a029..3b692ee38e 100755 --- a/compound_interest.py +++ b/compound_interest.py @@ -17,7 +17,7 @@ def compound_interest(p, t, r): if __name__ == "__main__": - p = float(input("Enter the principal amount: ")) + p = float(input("Enter the principle amount: ")) t = float(input("Enter the time period: ")) r = float(input("Enter the rate of interest: ")) From dc1a112060f19e04bbdcd0b8b25da3691fc11ce9 Mon Sep 17 00:00:00 2001 From: Xinke Ren Date: Mon, 14 Jul 2025 16:01:40 -0400 Subject: [PATCH 3/4] Revert "adding compound interest" This reverts commit 50d8d34789137a6d8d5096fbadea669fde4ec1b1. --- compound_interest.py | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100755 compound_interest.py diff --git a/compound_interest.py b/compound_interest.py deleted file mode 100755 index 3b692ee38e..0000000000 --- a/compound_interest.py +++ /dev/null @@ -1,24 +0,0 @@ -# This script calculates yearly compound 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) - -# Input: -# p, principal amount -# t, time period in years -# r, annual rate of interest - -# Output: -# compound interest = p * (1 + r/100)^t - - -def compound_interest(p, t, r): - return p * (pow((1 + r / 100), t)) - - -if __name__ == "__main__": - p = float(input("Enter the principle amount: ")) - t = float(input("Enter the time period: ")) - r = float(input("Enter the rate of interest: ")) - - print("The compound interest is {:.2f}".format(compound_interest(p, t, r))) From b1320815057fce6da2c10e42096acc8f6137dade Mon Sep 17 00:00:00 2001 From: Xinke Ren Date: Mon, 14 Jul 2025 16:03:50 -0400 Subject: [PATCH 4/4] Revert "fixed typo" This reverts commit b7bd73e46d2df5e3c7f45b522f70ce4f53f70130. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8c8a5c7243..b103466139 100644 --- a/README.md +++ b/README.md @@ -13,4 +13,4 @@ Output simple interest = p*t*r ``` -_© 2023 XYZ, Inc. +_© 2022 XYZ, Inc._