{"id":21605761,"url":"https://github.com/itsmenicky/bank-account","last_synced_at":"2025-07-22T14:32:38.160Z","repository":{"id":232902462,"uuid":"785449949","full_name":"itsmenicky/Bank-Account","owner":"itsmenicky","description":"A python program that performs banking operations using OOP concepts","archived":false,"fork":false,"pushed_at":"2024-04-18T23:17:25.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T14:47:19.365Z","etag":null,"topics":["oops-in-python","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/itsmenicky.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}},"created_at":"2024-04-11T22:51:08.000Z","updated_at":"2024-04-13T18:07:01.000Z","dependencies_parsed_at":"2024-04-19T00:25:27.943Z","dependency_job_id":null,"html_url":"https://github.com/itsmenicky/Bank-Account","commit_stats":null,"previous_names":["itsmenicky/bank-account"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/itsmenicky/Bank-Account","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsmenicky%2FBank-Account","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsmenicky%2FBank-Account/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsmenicky%2FBank-Account/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsmenicky%2FBank-Account/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itsmenicky","download_url":"https://codeload.github.com/itsmenicky/Bank-Account/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsmenicky%2FBank-Account/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266510313,"owners_count":23940637,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":["oops-in-python","python"],"created_at":"2024-11-24T20:17:17.444Z","updated_at":"2025-07-22T14:32:38.132Z","avatar_url":"https://github.com/itsmenicky.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=center\u003eBank Account 💸\u003c/br\u003e\u003c/br\u003e\u003cdiv align=center\u003e\u003cimg src=\"http://ForTheBadge.com/images/badges/made-with-python.svg\"\u003e\u003c/div\u003e \u003cimg src=\"https://badges.aleen42.com/src/cli.svg\"\u003e\u003c/h1\u003e\n\u003cp text-align=justify\u003eConsidering that a bank agency has 5 customers and each customer has an account:\u003c/p\u003e\n\u003ctable align=center\u003e\n  \u003cthead\u003e\n    \u003ctr\u003e\n      \u003cth\u003eCustomer\u003c/th\u003e\n      \u003cth\u003eBalance\u003c/th\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003cth\u003eMarcos\u003c/th\u003e\n      \u003cth\u003e$ 1.000,00\u003c/th\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003cth\u003eJulia\u003c/th\u003e\n      \u003cth\u003e$ 250,00\u003c/th\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003cth\u003eJoão\u003c/th\u003e\n      \u003cth\u003e$ 2.500,00\u003c/th\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003cth\u003eRoberto\u003c/th\u003e\n      \u003cth\u003e$ 3.000,00\u003c/th\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003cth\u003eJanaína\u003c/th\u003e\n      \u003cth\u003e$ 4.500,00\u003c/th\u003e\n    \u003c/tr\u003e\n  \u003c/thead\u003e\n\u003c/table\u003e\n\n\u003cp text-align=justify\u003eAn algorithm was developed in Python to manage these accounts. As the algorithm needs to deal with different bank accounts, I used the \u003cstrong\u003eBankAccount\u003c/strong\u003e class to store the account holder's name, account balance and password.\u003c/p\u003e\n\n\u003cp text-align=justify\u003eConsidering that a new tax was created that must be applied to banking operations, for each withdrawal made, 0.25% of the amount withdrawn must be deducted from the customer's remaining balance. The discounted amounts are accumulated in a private attribute \u003cstrong\u003e__cpmf\u003c/strong\u003e, which has been added to the \u003cstrong\u003eBankAccount\u003c/strong\u003e class.\n\u003c/p\u003e\n\n\u003cp text-align=justify\u003eThe \u003cstrong\u003eget_password\u003c/strong\u003e and \u003cstrong\u003eget_cpmf\u003c/strong\u003e methods were also created in the \u003cstrong\u003eBankAccount\u003c/strong\u003e class.\u003c/p\u003e\n\n\u003ch2\u003eMain Program\u003c/h2\u003e\n\u003cp text-align=justify\u003eIn the main program I created five instances of \u003cstrong\u003eBankAccount\u003c/strong\u003e and stored these objects in a list. I added an info function that receives the list of bank accounts and displays the data (account holder and balance) of all accounts on the screen. I also added the program's interactions with the user. For this, the \u003cstrong\u003ewithdraw_interaction\u003c/strong\u003e, \u003cstrong\u003edeposit_interaction\u003c/strong\u003e and \u003cstrong\u003etransfer_interaction\u003c/strong\u003e functions were created; and implemented an options menu in the application.\u003c/p\u003e\n\n\u003cp text-align=justify\u003eA password authenticator was also implemented for greater security in the program's banking operations, through the \u003cstrong\u003epassword_authenticator\u003c/strong\u003e function, which receives as parameters the \u003cstrong\u003eaccount_index\u003c/strong\u003e (index referring to the user's account that is carrying out the operation) and the password to be verified, \u003cstrong\u003everify\u003c/strong\u003e.\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsmenicky%2Fbank-account","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitsmenicky%2Fbank-account","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsmenicky%2Fbank-account/lists"}