Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: Need help on a project To :"Create a class called BankAccount with the following parameters " Date: Sat, 12 Dec 2015 20:21:28 +1100 Lines: 23 Message-ID: References: <5ec1d759-a2ab-4193-a4aa-869c0bf0506c@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de f1D9FOrjCOi41PL18Y67AQAVZsWRcWqr4ugmfsTNysKw== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'constructor': 0.07; 'subject:help': 0.07; 'cc:addr:python-list': 0.09; 'subclass': 0.09; 'python': 0.10; 'accordingly.': 0.13; 'subject: \n ': 0.15; 'assigns': 0.16; 'bankaccount': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:class': 0.16; 'subject:parameters': 0.16; 'with?': 0.16; 'withdrawal': 0.16; 'wrote:': 0.16; 'integer': 0.18; 'subject:project': 0.18; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'code.': 0.23; 'dec': 0.23; 'sat,': 0.23; 'header:In-Reply-To:1': 0.24; 'message- id:@mail.gmail.com': 0.27; 'creating': 0.30; 'class': 0.33; 'programming,': 0.33; 'file': 0.34; 'received:google.com': 0.35; 'text': 0.35; 'programming.': 0.35; 'should': 0.36; 'received:209.85': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'method': 0.37; '12,': 0.37; 'received:209.85.213': 0.37; 'received:209': 0.38; 'subject:the': 0.39; 'takes': 0.39; 'subject:with': 0.40; 'called': 0.40; 'your': 0.60; 'deposit': 0.61; 'subject:Need': 0.61; 'course': 0.62; 'information': 0.63; 'balance': 0.64; 'chrisa': 0.84; 'to:none': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=BkZ7bfPbOkpiGM7dkgIqFLPVi9wMLM6+2KwLKn9M8HI=; b=DGmt9TgafjcNp9+l1CUJh8yKzNRwySbAbp6mK7E030HrKrA08zFTWO5YR6BnDgRrME qFc7waNHjKuOZR/EL1ShlVI7Yrr/c1KSMLwoetBgvfaN2JUGj/yBlBGtCRQ2w6SXyiCm fnCQnEyCrCFrcIuA+8fB1NJUcLycChdskmTkO0pzVT3ZUFWTu0Y6m+Ncrc43F4UFoz1U wCRhy8qvq5qlEYe943urGU2uybLp+SBuXxzsVyp7wsvi7f6qAC9EQxvOGX0uo4seS4h5 rAyibWxcJE0u0rDaZqVN7FqZnWzA82Tzqyk+bW0candOKq/BWT7xPzTIfKOYzHPoDIgA zLcA== X-Received: by 10.50.61.164 with SMTP id q4mr8890545igr.13.1449912088562; Sat, 12 Dec 2015 01:21:28 -0800 (PST) In-Reply-To: <5ec1d759-a2ab-4193-a4aa-869c0bf0506c@googlegroups.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:100325 On Sat, Dec 12, 2015 at 8:05 PM, Harbey Leke wrote: > Create a class called BankAccount > > .Create a constructor that takes in an integer and assigns this to a `balance` property. > > .Create a method called `deposit` that takes in cash deposit amount and updates the balance accordingly. > > .Create a method called `withdraw` that takes in cash withdrawal amount and updates the balance accordingly. if amount is greater than balance return `"invalid transaction"` > > .Create a subclass MinimumBalanceAccount of the BankAccount class > > Please i need help on this i am a beginer into python programming. Start by creating a text file in which you will store your code. Then create a class called BankAccount, and start adding methods to it. Which part of this do you need help with? If you're taking a course on Python programming, you should have met these concepts. Go and read the course text and see if you can find the information you need. ChrisA