Giter VIP home page Giter VIP logo

bank-account's Introduction

Bank Account

Description

The main focus of this project is to create a Python progra mthat simulates a bank account using object-oriented programming concepts.

Class variables and Instance variables

The account will have a class variables that will contain the routing number which is going to be the same for all accounts and instance variables that will store things like full name, account number, routing number and balance for every instance of the Bank Account class.

Methods

Each account will have a series of methods: deposit, withdraw, get_balance, add_interest and print_receipt.

Deposit

This method will get one parameter which is going to be the amount and then it will add that amount to the balance. After adding the amount it will print a message with the amount deposited.

Withdraw

This method will take one parameter which is also going to be the amount and then it will substract that amount from the balance. After substracting it will print a message of the withdraw amount. If the account have insufficient founds it will display it and charge the account ten dollars.

Get Balance

This method will print a message of the account balance.

Add Interest

This method adds interest to the account. The interest on the account will be the product of the balance and 0.00083. The number 0.00083 comes from the annual interest rate which is 1% divided by 12 which represent the months.

Print Receipt

This method prints a receipt with everything in it. The account name, account number, routing number, and balance.

bank-account's People

Contributors

sicaramacuya avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.