https://github.com/julianamancera/labassign7_decoratorpattern
Software Engineering 1 - Decorator Pattern: Laboratory Assignment 7
https://github.com/julianamancera/labassign7_decoratorpattern
cimb decorator-pattern software-engineering
Last synced: 21 days ago
JSON representation
Software Engineering 1 - Decorator Pattern: Laboratory Assignment 7
- Host: GitHub
- URL: https://github.com/julianamancera/labassign7_decoratorpattern
- Owner: JulianaMancera
- Created: 2024-12-05T11:18:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-16T11:02:30.000Z (over 1 year ago)
- Last Synced: 2025-03-04T07:17:33.279Z (about 1 year ago)
- Topics: cimb, decorator-pattern, software-engineering
- Language: Java
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LabAssign7_DecoratorPattern
## CIMB
CIMB is a digital bank that offers GSave and UpSave savings accounts. As with a typical Savings Account, it contains accountNumber, accountName, and a balance for that account.
- The typical savings account offers an interest rate of 1%.
- The benefits of the typical savings account is the same with the "Standard Savings Account" as compared to other banks.
- The GSave account offers an interest rate of 2.5%.
- Benefits include the "Standard Savings Account" plus access to "GCash transfer".
- The UpSave account offers the highest interest rate of 4.0%.
- Benefits include the "Standard Savings Account" plus "with Insurance".
**Develop a decorator pattern approach that will implement the given UML diagram:**

> [!CAUTION]
> The content of your `Cimb.java`should ONLY contain the following codes with the exception of inserting your own package name
### Description of the following methods
- **showAccountType()** - Either returns "Savings Account", "GSave" or "UpSave"
- **getInterestRate()** - Either returns 1% for Savings Account; 2.5% for GSave; 4.0% UpSave
- **getBalance()** - Returns the balance of the account set.
- **showBenefits()** - Either returns "Standard Savings Account" for Savings Account;
benefits offered by savings account + "GSave Transfer";
benefits offered by savings account + "With Insurance";
- **computeBalanceWithInterest()** - returns new balance by computing the balance plus the interest depending on the interest rate.
- **showInfo()** - Returns details of account number, account name, and balance.
**BankAcountDecorator** must be an interface.
>[!CAUTION]
> You are not allowed to insert other methods except what is stated in the diagram (setters and getters are allowed).
**You should display the following output:**
