-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
51 lines (43 loc) · 1.4 KB
/
main.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
#-----------------------------------------------------------------
# The main application. This is what needs to be run to run the
# full application. Calls 8 function from 8 different script files.
# Author: Erv
#------------------------------------------------------------------
from welcome import welcome_func
from discrete import discrete_calculate
from continuous import continuous_calculate
from int_calc_selector import select_calculator
from cryptocurrency import crypt_peep
from crypto_web import crypt_receive
from crypto_cli import cli_print
from crypto_cliselect import select_coin
# call welcome.py
selector_1 = welcome_func()
display = " "
if selector_1 == "Q":
# User wants to view cyptocurrency website
# call cryptocurrency.py
q_select = crypt_peep()
# pass logic from previous function to crypto_web.py
display = crypt_receive(q_select)
elif selector_1 == 'W':
# User wants to view cryptocurrency
# through the CLI.
coin_str = " "
w_select = crypt_peep()
coin_str = select_coin(w_select)
display = cli_print(coin_str)
else:
# User wants to use interest calculators
# call int_calc_selector.py
selector_2 = select_calculator()
if selector_2 == "D":
# User wants to use discrete calculators
# call discrete.py
display = discrete_calculate()
else:
# User wants to use continuous calculators
# call continuous.py
display = continuous_calculate()
# display
print(display)