update
This commit is contained in:
parent
2992f4f408
commit
4f46de8d00
3330 changed files with 394553 additions and 76939 deletions
25
.config/Code/User/History/5b464f92/84jY.py
Normal file
25
.config/Code/User/History/5b464f92/84jY.py
Normal file
|
@ -0,0 +1,25 @@
|
|||
class BankAccount:
|
||||
def __init__(self, account_no: str, name: str, balance: float) -> None:
|
||||
self.account_no = account_no
|
||||
self.name = name
|
||||
self.balance = balance
|
||||
|
||||
def deposit(self, amount: float) -> None:
|
||||
self.balance += amount
|
||||
|
||||
def withdraw(self, amount: float) -> None:
|
||||
self.balance -= amount
|
||||
|
||||
def bank_fees(self) -> None:
|
||||
self.balance -= 0.05 * self.balance
|
||||
|
||||
def display(self) -> None:
|
||||
print('account no: ', self.account_no)
|
||||
print('name: ', self.name)
|
||||
print('balance: ', self.balance)
|
||||
|
||||
mahd_account = BankAccount('2587', 'Mahd', 0.0)
|
||||
mahd_account.deposit(500.0)
|
||||
mahd_account.withdraw(5.0)
|
||||
mahd_account.bank_fees()
|
||||
mahd_account.display()
|
20
.config/Code/User/History/5b464f92/8BVv.py
Normal file
20
.config/Code/User/History/5b464f92/8BVv.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
class BankAccount:
|
||||
def __init__(self, account_no: str, name: str, balance: float) -> None:
|
||||
self.account_no = account_no
|
||||
self.name = name
|
||||
self.balance = balance
|
||||
|
||||
def deposit(self, amount: float) -> None:
|
||||
self.balance += amount
|
||||
|
||||
def withdraw(self, amount: float) -> None:
|
||||
self.balance -= amount
|
||||
|
||||
def bank_fees(self) -> None:
|
||||
self.balance -= 0.05 * self.balance
|
||||
|
||||
def display(self) -> None:
|
||||
print('account no: ', self.account_no)
|
||||
print('name: ', self.name)
|
||||
print('balance: ', self.balance)
|
||||
|
15
.config/Code/User/History/5b464f92/9FqA.py
Normal file
15
.config/Code/User/History/5b464f92/9FqA.py
Normal file
|
@ -0,0 +1,15 @@
|
|||
class BankAccount:
|
||||
def __init__(self, account_no: str, name: str, balance: float) -> None:
|
||||
self.account_no = account_no
|
||||
self.name = name
|
||||
self.balance = balance
|
||||
|
||||
def deposit(self, amount: float) -> None:
|
||||
self.balance += amount
|
||||
|
||||
def withdraw(self, amount: float) -> None:
|
||||
self.balance -= amount
|
||||
|
||||
def bank_fees(self) -> None:
|
||||
|
||||
pass
|
26
.config/Code/User/History/5b464f92/IU4K.py
Normal file
26
.config/Code/User/History/5b464f92/IU4K.py
Normal file
|
@ -0,0 +1,26 @@
|
|||
class BankAccount:
|
||||
def __init__(self, account_no: str, name: str, balance: float) -> None:
|
||||
self.account_no = account_no
|
||||
self.name = name
|
||||
self.balance = balance
|
||||
|
||||
def deposit(self, amount: float) -> None:
|
||||
self.balance += amount
|
||||
|
||||
def withdraw(self, amount: float) -> None:
|
||||
self.balance -= amount
|
||||
|
||||
def bank_fees(self) -> None:
|
||||
self.balance -= 0.05 * self.balance
|
||||
|
||||
def display(self) -> None:
|
||||
print('account no: ', self.account_no)
|
||||
print('name: ', self.name)
|
||||
print('balance: ', self.balance)
|
||||
|
||||
def main():
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
21
.config/Code/User/History/5b464f92/K9pE.py
Normal file
21
.config/Code/User/History/5b464f92/K9pE.py
Normal file
|
@ -0,0 +1,21 @@
|
|||
class BankAccount:
|
||||
def __init__(self, account_no: str, name: str, balance: float) -> None:
|
||||
self.account_no = account_no
|
||||
self.name = name
|
||||
self.balance = balance
|
||||
|
||||
def deposit(self, amount: float) -> None:
|
||||
self.balance += amount
|
||||
|
||||
def withdraw(self, amount: float) -> None:
|
||||
self.balance -= amount
|
||||
|
||||
def bank_fees(self) -> None:
|
||||
self.balance -= 0.05 * self.balance
|
||||
|
||||
def display(self) -> None:
|
||||
print('account no: ', self.account_no)
|
||||
print('name: ', self.name)
|
||||
print('balance: ', self.balance)
|
||||
|
||||
|
8
.config/Code/User/History/5b464f92/Kjih.py
Normal file
8
.config/Code/User/History/5b464f92/Kjih.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
class BankAccount:
|
||||
def __init__(self, account_no, name, balance) -> None:
|
||||
self.account_no = account_no
|
||||
self.name = name
|
||||
self.balance = balance
|
||||
|
||||
def deposit(self, amount: float) -> None:
|
||||
self.balance += amount
|
11
.config/Code/User/History/5b464f92/NFvs.py
Normal file
11
.config/Code/User/History/5b464f92/NFvs.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
class BankAccount:
|
||||
def __init__(self, account_no: str, name: str, balance: float) -> None:
|
||||
self.account_no = account_no
|
||||
self.name = name
|
||||
self.balance = balance
|
||||
|
||||
def deposit(self, amount: float) -> None:
|
||||
self.balance += amount
|
||||
|
||||
def withdraw(self, amount: float) -> None:
|
||||
self.balance -= amount
|
7
.config/Code/User/History/5b464f92/NhS5.py
Normal file
7
.config/Code/User/History/5b464f92/NhS5.py
Normal file
|
@ -0,0 +1,7 @@
|
|||
class BankAccount:
|
||||
def __init__(self, account_no, name, balance) -> None:
|
||||
self.account_no = account_no
|
||||
self.name = name
|
||||
self.balance = balance
|
||||
|
||||
|
6
.config/Code/User/History/5b464f92/ODBb.py
Normal file
6
.config/Code/User/History/5b464f92/ODBb.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
class BankAccount:
|
||||
def __init__(self, account_no, name, balance) -> None:
|
||||
self.account_no = account_no
|
||||
self.name = name
|
||||
self.balance = balance
|
||||
pass
|
25
.config/Code/User/History/5b464f92/Rr2P.py
Normal file
25
.config/Code/User/History/5b464f92/Rr2P.py
Normal file
|
@ -0,0 +1,25 @@
|
|||
class BankAccount:
|
||||
def __init__(self, account_no: str, name: str, balance: float) -> None:
|
||||
self.account_no = account_no
|
||||
self.name = name
|
||||
self.balance = balance
|
||||
|
||||
def deposit(self, amount: float) -> None:
|
||||
self.balance += amount
|
||||
|
||||
def withdraw(self, amount: float) -> None:
|
||||
self.balance -= amount
|
||||
|
||||
def bank_fees(self) -> None:
|
||||
self.balance -= 0.05 * self.balance
|
||||
|
||||
def display(self) -> None:
|
||||
print('account no: ', self.account_no)
|
||||
print('name: ', self.name)
|
||||
print('balance: ', self.balance)
|
||||
|
||||
mahd_account = BankAccount('2587', 'Mahd', 0.0)
|
||||
mahd_account.deposit(500.0)
|
||||
mahd_account.withdraw(5.0)
|
||||
mahd_account.bank_fees()
|
||||
mahd_account.display()
|
24
.config/Code/User/History/5b464f92/b7s5.py
Normal file
24
.config/Code/User/History/5b464f92/b7s5.py
Normal file
|
@ -0,0 +1,24 @@
|
|||
class BankAccount:
|
||||
def __init__(self, account_no: str, name: str, balance: float) -> None:
|
||||
self.account_no = account_no
|
||||
self.name = name
|
||||
self.balance = balance
|
||||
|
||||
def deposit(self, amount: float) -> None:
|
||||
self.balance += amount
|
||||
|
||||
def withdraw(self, amount: float) -> None:
|
||||
self.balance -= amount
|
||||
|
||||
def bank_fees(self) -> None:
|
||||
self.balance -= 0.05 * self.balance
|
||||
|
||||
def display(self) -> None:
|
||||
print('account no: ', self.account_no)
|
||||
print('name: ', self.name)
|
||||
print('balance: ', self.balance)
|
||||
|
||||
mahd_account = BankAccount('2587', 'Mahd', 0.0)
|
||||
mahd_account.deposit(500.0)
|
||||
mahd_account.withdraw(5.0)
|
||||
mahd_account.display()
|
3
.config/Code/User/History/5b464f92/bcK3.py
Normal file
3
.config/Code/User/History/5b464f92/bcK3.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
class BankAccount:
|
||||
def __init__(self) -> None:
|
||||
pass
|
17
.config/Code/User/History/5b464f92/cUEa.py
Normal file
17
.config/Code/User/History/5b464f92/cUEa.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
class BankAccount:
|
||||
def __init__(self, account_no: str, name: str, balance: float) -> None:
|
||||
self.account_no = account_no
|
||||
self.name = name
|
||||
self.balance = balance
|
||||
|
||||
def deposit(self, amount: float) -> None:
|
||||
self.balance += amount
|
||||
|
||||
def withdraw(self, amount: float) -> None:
|
||||
self.balance -= amount
|
||||
|
||||
def bank_fees(self) -> None:
|
||||
self.balance -= 0.05 * self.balance
|
||||
|
||||
def display(self) -> None:
|
||||
|
25
.config/Code/User/History/5b464f92/cXEs.py
Normal file
25
.config/Code/User/History/5b464f92/cXEs.py
Normal file
|
@ -0,0 +1,25 @@
|
|||
class BankAccount:
|
||||
def __init__(self, account_no: str, name: str, balance: float) -> None:
|
||||
self.account_no = account_no
|
||||
self.name = name
|
||||
self.balance = balance
|
||||
|
||||
def deposit(self, amount: float) -> None:
|
||||
self.balance += amount
|
||||
|
||||
def withdraw(self, amount: float) -> None:
|
||||
self.balance -= amount
|
||||
|
||||
def bank_fees(self) -> None:
|
||||
self.balance -= 0.05 * self.balance
|
||||
|
||||
def display(self) -> None:
|
||||
print('account no: ', self.account_no)
|
||||
print('name: ', self.name)
|
||||
print('balance: ', self.balance)
|
||||
|
||||
mahd_account = BankAccount('2587', 'Mahd', 0.0)
|
||||
mahd_account.deposit(500.0)
|
||||
mahd_account.withdraw(5.0)
|
||||
mahd_account.bank_fees()
|
||||
mahd_account.display()
|
1
.config/Code/User/History/5b464f92/entries.json
Normal file
1
.config/Code/User/History/5b464f92/entries.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":1,"resource":"file:///home/rafayahmad/Stuff/Coding/Python/IDS/lab3/task4.py","entries":[{"id":"bcK3.py","timestamp":1725423760052},{"id":"ODBb.py","timestamp":1725423808749},{"id":"NhS5.py","timestamp":1725423874876},{"id":"oLXc.py","timestamp":1725423930439},{"id":"Kjih.py","timestamp":1725423942489},{"id":"zzZh.py","timestamp":1725423963109},{"id":"qji8.py","timestamp":1725423976279},{"id":"NFvs.py","timestamp":1725423994629},{"id":"9FqA.py","timestamp":1725424035290},{"id":"y1DC.py","timestamp":1725424305621},{"id":"cUEa.py","timestamp":1725424328551},{"id":"zHm8.py","timestamp":1725424390361},{"id":"8BVv.py","timestamp":1725424406588},{"id":"IU4K.py","timestamp":1725424430561},{"id":"K9pE.py","timestamp":1725424441285},{"id":"hSwZ.py","timestamp":1725424473465},{"id":"b7s5.py","timestamp":1725424498712},{"id":"Rr2P.py","timestamp":1725424519385},{"id":"84jY.py","timestamp":1725427039869},{"id":"cXEs.py","timestamp":1725427915385}]}
|
21
.config/Code/User/History/5b464f92/hSwZ.py
Normal file
21
.config/Code/User/History/5b464f92/hSwZ.py
Normal file
|
@ -0,0 +1,21 @@
|
|||
class BankAccount:
|
||||
def __init__(self, account_no: str, name: str, balance: float) -> None:
|
||||
self.account_no = account_no
|
||||
self.name = name
|
||||
self.balance = balance
|
||||
|
||||
def deposit(self, amount: float) -> None:
|
||||
self.balance += amount
|
||||
|
||||
def withdraw(self, amount: float) -> None:
|
||||
self.balance -= amount
|
||||
|
||||
def bank_fees(self) -> None:
|
||||
self.balance -= 0.05 * self.balance
|
||||
|
||||
def display(self) -> None:
|
||||
print('account no: ', self.account_no)
|
||||
print('name: ', self.name)
|
||||
print('balance: ', self.balance)
|
||||
|
||||
mahd_account = BankAccount('2587', 'Mahd', 0.0)
|
8
.config/Code/User/History/5b464f92/oLXc.py
Normal file
8
.config/Code/User/History/5b464f92/oLXc.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
class BankAccount:
|
||||
def __init__(self, account_no, name, balance) -> None:
|
||||
self.account_no = account_no
|
||||
self.name = name
|
||||
self.balance = balance
|
||||
|
||||
def deposit(self, amount: float) -> None:
|
||||
|
10
.config/Code/User/History/5b464f92/qji8.py
Normal file
10
.config/Code/User/History/5b464f92/qji8.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
class BankAccount:
|
||||
def __init__(self, account_no: str, name: str, balance: float) -> None:
|
||||
self.account_no = account_no
|
||||
self.name = name
|
||||
self.balance = balance
|
||||
|
||||
def deposit(self, amount: float) -> None:
|
||||
self.balance += amount
|
||||
|
||||
def withdraw(self, )
|
14
.config/Code/User/History/5b464f92/y1DC.py
Normal file
14
.config/Code/User/History/5b464f92/y1DC.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
class BankAccount:
|
||||
def __init__(self, account_no: str, name: str, balance: float) -> None:
|
||||
self.account_no = account_no
|
||||
self.name = name
|
||||
self.balance = balance
|
||||
|
||||
def deposit(self, amount: float) -> None:
|
||||
self.balance += amount
|
||||
|
||||
def withdraw(self, amount: float) -> None:
|
||||
self.balance -= amount
|
||||
|
||||
def bank_fees(self) -> None:
|
||||
self.balance -= 0.05 * self.balance
|
19
.config/Code/User/History/5b464f92/zHm8.py
Normal file
19
.config/Code/User/History/5b464f92/zHm8.py
Normal file
|
@ -0,0 +1,19 @@
|
|||
class BankAccount:
|
||||
def __init__(self, account_no: str, name: str, balance: float) -> None:
|
||||
self.account_no = account_no
|
||||
self.name = name
|
||||
self.balance = balance
|
||||
|
||||
def deposit(self, amount: float) -> None:
|
||||
self.balance += amount
|
||||
|
||||
def withdraw(self, amount: float) -> None:
|
||||
self.balance -= amount
|
||||
|
||||
def bank_fees(self) -> None:
|
||||
self.balance -= 0.05 * self.balance
|
||||
|
||||
def display(self) -> None:
|
||||
print('account no: ', self.account_no)
|
||||
print('name: ', self.name)
|
||||
print('balance: ', self.balance)
|
10
.config/Code/User/History/5b464f92/zzZh.py
Normal file
10
.config/Code/User/History/5b464f92/zzZh.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
class BankAccount:
|
||||
def __init__(self: BankAccount, account_no, name, balance) -> None:
|
||||
self.account_no = account_no
|
||||
self.name = name
|
||||
self.balance = balance
|
||||
|
||||
def deposit(self, amount: float) -> None:
|
||||
self.balance += amount
|
||||
|
||||
def withdraw(self, )
|
Loading…
Add table
Add a link
Reference in a new issue