User Profile

Collapse

Profile Sidebar

Collapse
kidoman
kidoman
Last Activity: Apr 2 '13, 12:54 AM
Joined: Mar 26 '13
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • kidoman
    replied to JES account balance function
    This is nearly the finished code except i need to the printledgerline function and i dont know what that is. please help me with this function

    Code:
    g_balance = 0
    
    
    def setBalance(amount):
        global g_balance
        if amount:
            g_balance = amount
    
    
    def printBalance():
        global g_balance
        if g_balance >=0:
          printNow("%s $%0.2f" % ("Currrent
    ...
    See more | Go to post
    Last edited by Rabbit; Apr 1 '13, 10:57 PM. Reason: Please use code tags when posting code.

    Leave a comment:


  • kidoman
    started a topic JES account balance function

    JES account balance function

    am supposed to complete the following five functions, i have no idea how to do this. I will greatly appreciate any help

    The following five functions allow you to maintain the running balance of an account and print out lines relating to each transaction.

    You'll also need a global variable (balance?) to maintain the running balance of the account.

    1. def setBalance(amt) : # Defines (but doesn't print) the...
    See more | Go to post
    Last edited by Rabbit; Mar 26 '13, 03:41 PM. Reason: Please use code tags when posting code.
No activity results to display
Show More
Working...