{"id":25943574,"url":"https://github.com/julianamancera/labassign7_decoratorpattern","last_synced_at":"2026-03-05T09:32:47.207Z","repository":{"id":268350093,"uuid":"898964035","full_name":"JulianaMancera/LabAssign7_DecoratorPattern","owner":"JulianaMancera","description":"Software Engineering 1 - Decorator Pattern: Laboratory Assignment 7","archived":false,"fork":false,"pushed_at":"2024-12-16T11:02:30.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T07:17:33.279Z","etag":null,"topics":["cimb","decorator-pattern","software-engineering"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JulianaMancera.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-05T11:18:31.000Z","updated_at":"2025-02-07T03:59:54.000Z","dependencies_parsed_at":"2024-12-16T08:33:52.183Z","dependency_job_id":"ed2180ae-6901-44f3-ba28-785e4518159d","html_url":"https://github.com/JulianaMancera/LabAssign7_DecoratorPattern","commit_stats":null,"previous_names":["julianamancera/labassign7_decoratorpattern"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JulianaMancera/LabAssign7_DecoratorPattern","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JulianaMancera%2FLabAssign7_DecoratorPattern","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JulianaMancera%2FLabAssign7_DecoratorPattern/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JulianaMancera%2FLabAssign7_DecoratorPattern/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JulianaMancera%2FLabAssign7_DecoratorPattern/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JulianaMancera","download_url":"https://codeload.github.com/JulianaMancera/LabAssign7_DecoratorPattern/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JulianaMancera%2FLabAssign7_DecoratorPattern/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30117710,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T08:19:04.902Z","status":"ssl_error","status_checked_at":"2026-03-05T08:17:37.148Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cimb","decorator-pattern","software-engineering"],"created_at":"2025-03-04T07:17:39.017Z","updated_at":"2026-03-05T09:32:47.190Z","avatar_url":"https://github.com/JulianaMancera.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LabAssign7_DecoratorPattern\n## CIMB\nCIMB 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. \n- The typical savings account offers an interest rate of 1%. \n- The benefits of the typical savings account is the same with the \"Standard Savings Account\" as compared to other banks.\n- The GSave account offers an interest rate of 2.5%.\n- Benefits include the \"Standard Savings Account\" plus access to \"GCash transfer\".\n- The UpSave account offers the highest interest rate of 4.0%.\n- Benefits include the \"Standard Savings Account\" plus \"with Insurance\". \u003cbr\u003e \u003cbr\u003e\n**Develop a decorator pattern approach that will implement the given UML diagram:**\n![image](https://github.com/user-attachments/assets/3354634b-de10-4419-bb7c-68ad271d40d0)\n\n\u003e [!CAUTION]\n\u003e The content of your `Cimb.java`should ONLY contain the following codes with the exception of inserting your own package name\n\n### Description of the following methods\n\n- **showAccountType()** - Either returns \"Savings Account\", \"GSave\" or \"UpSave\" \u003cbr\u003e\n- **getInterestRate()** - Either returns 1% for Savings Account; 2.5% for GSave; 4.0% UpSave \u003cbr\u003e\n- **getBalance()** - Returns the balance of the account set. \u003cbr\u003e\n- **showBenefits()** - Either returns \"Standard Savings Account\" for Savings Account; \u003cbr\u003e\n\u0026emsp;\u0026emsp;\u0026emsp;\u0026emsp;\u0026emsp;\u0026emsp;\u0026emsp;\u0026emsp;benefits offered by savings account + \"GSave Transfer\"; \u003cbr\u003e\n\u0026emsp;\u0026emsp;\u0026emsp;\u0026emsp;\u0026emsp;\u0026emsp;\u0026emsp;\u0026emsp;benefits offered by savings account + \"With Insurance\"; \u003cbr\u003e\n- **computeBalanceWithInterest()** - returns new balance by computing the balance plus the interest depending on the interest rate. \u003cbr\u003e\n- **showInfo()** - Returns details of account number, account name, and balance. \u003cbr\u003e \u003cbr\u003e\n**BankAcountDecorator** must be an interface.\n\n\u003e[!CAUTION]\n\u003e You are not allowed to insert other methods except what is stated in the diagram (setters and getters are allowed).\n\n**You should display the following output:**\n![image](https://github.com/user-attachments/assets/8d4b5cd9-f227-4bda-b1c2-9e4eba3047ba)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulianamancera%2Flabassign7_decoratorpattern","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjulianamancera%2Flabassign7_decoratorpattern","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulianamancera%2Flabassign7_decoratorpattern/lists"}