예제 #1
0
 def depositcash(self):
     amount = float(input("Enter the amount to be deposited \n"))
     self.balance = amount
     self.working()
     print("Your nwe account balance is %.2f" % self.balance)
     print("::\n")
     filestore.balupdate(self.username, -amount)
     self.transact_again()
예제 #2
0
 def withdrawcash(self):
     amount = float(input("::\n Please enter amount to withdraw\n:"))
     self.balance = amount
     self.working()
     print("Your account balance is %.2f" % self.balance)
     print("::\n")
     filestore.balupdate(self.username, -amount)
     self.transact_again()
 def transfer(self):
     amount = float(
         input("::\nPlease verify the amount again to be transfered\n:"))
     self.username = input("\nEnter the name of the payee:\n")
     self.balance += amount
     self.working()
     filestore.balupdate(self.username, amount)
     print("Amount transfered succesfully")
예제 #4
0
 def depositcash(self):
     amount=float(raw_input("::\nPlease enter amount to be deposited\n: "))
     self.balance+=amount
     self.working()
     print ("Your new account balance is %.2f" %self.balance)
     print ("::\n")
     filestore.balupdate(self.username, amount)
     self.transact_again()
    def withdrawcash1(self):
        amount = float(input("::\n Please enter amount to be Tramsfered\n: "))
        self.balance -= amount
        self.working()

        filestore.balupdate(self.username, -amount)