-
Notifications
You must be signed in to change notification settings - Fork 0
/
Menu.py
109 lines (91 loc) · 2.24 KB
/
Menu.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# Menu.py
import Transactions
import Balance
import Interest
import Loan
import StockMarket
import ATM
import Insurance
import RecentTransactions
import Shop
from time import sleep
def helloMenu():
print("This is a hello menu module")
def pressAnyKey():
input("Press any key to continue.")
def showMenu():
anwser =str(input("would you like to see the main menu?"))
if anwser == "yes":
print('ok entering...')
sleep(1)
displayMenu()
else:
print("exiting...")
sleep(1)
exit()
def displayMenu():
print("Menu:\n"
"1. Balance Display\n"
"2. Deposit Money\n"
"3. Withdraw Money\n"
"4. Interest\n"
"5. Loans\n"
"6. Donate Money\n"
"7. Stocks\n"
"8. ATM\n"
"9. Insurance\n"
"10. Recent Transactions\n"
"11. Shop\n"
"0. Exit")
choice = str(input("Type your choice number. \n"))
if choice == "1":
print("Your balance is: ", Balance.balance)
pressAnyKey()
displayMenu()
elif choice == "2":
Transactions.depositMoney()
pressAnyKey()
displayMenu()
elif choice == "3":
Transactions.withdrawMoney()
pressAnyKey()
displayMenu()
elif choice == "4":
Interest.interestCalculation()
Interest.interestMoney()
pressAnyKey()
displayMenu()
elif choice == "5":
Loan.performLoan()
pressAnyKey()
displayMenu()
elif choice == "6":
Transactions.donateMoney()
pressAnyKey()
displayMenu()
elif choice == "7":
StockMarket.options()
pressAnyKey()
displayMenu()
elif choice == "8":
ATM.atmSecurity()
pressAnyKey()
displayMenu()
elif choice == "9":
Insurance.insuranceType()
pressAnyKey()
displayMenu()
elif choice == "10":
RecentTransactions.display()
pressAnyKey()
displayMenu()
elif choice == "11":
Shop.startShop()
pressAnyKey()
displayMenu()
elif choice == "0":
print("Goodbye...")
exit()
else:
print("Please enter a valid thing to do.")
displayMenu()