-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtester.py
31 lines (24 loc) · 1.27 KB
/
tester.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from Transaction import *
from BankAccount import *
#trans1 = Transaction()
#print(trans1.getAmount())
#print(trans1.getDate())
bank1 = BankAccount()
print(bank1.__str__())
userInput = input("Please enter what you would like to do (""d"" for deposit, ""i"" for recieving interest, ""w"" to withdrawl, ""q"" to quit): ")
while userInput != "q":
if userInput == "d":
bank1.deposit()
print("Deposit made")
userInput = input("Please enter what you would like to do (""d"" for deposit, ""i"" for recieving interest, ""w"" to withdrawl, ""q"" to quit): ")
elif userInput == "i":
bank1.interest()
print("interest payment made")
userInput = input("Please enter what you would like to do (""d"" for deposit, ""i"" for recieving interest, ""w"" to withdrawl, ""q"" to quit): ")
elif userInput == "w":
print("Function not yet complete.")
userInput = input("Please enter what you would like to do (""d"" for deposit, ""i"" for recieving interest, ""w"" to withdrawl, ""q"" to quit): ")
else:
userInput = input("Please enter what you would like to do (""d"" for deposit, ""i"" for recieving interest, ""w"" to withdrawl, ""q"" to quit): ")
print(bank1.__str__())
#print(bank2.getAccountNum())