-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcalcpace.py
50 lines (49 loc) · 1.41 KB
/
calcpace.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
from functions import dist
from functions import timerun
from functions import adjust
from functions import calcpace
from functions import predictrun
from functions import converttime
from functions import toprint
from functions import date
from functions import observations
from functions import setdata
from functions import getdata
from functions import deletedata
from functions import createtable
from texts import menu_text
from texts import invalidoption_text
#Menu inicial
menu_text()
option = input()
if option == '1':
total = dist()
totaltime= timerun()
adjusted = adjust(totaltime)
finalpace = calcpace(adjusted, total)
convertedpace = converttime(finalpace)
impress = toprint(convertedpace)
elif option == '2':
total = dist()
totaltime= timerun()
adjusted = adjust(totaltime)
calctemp = predictrun(adjusted, total)
convertedtemprun = converttime(calctemp)
impress = toprint(convertedtemprun)
elif option == '3':
createtable()
thedate = date()
total = dist()
totaltime = timerun()
adjusted = adjust(totaltime)
finalpace = calcpace(adjusted, total)
convertedpace = converttime(finalpace)
obs = observations()
escrever = setdata(thedate, total, totaltime, convertedpace, obs)
elif option == '4':
getdata()
deletedata()
elif option == '5':
getdata()
else:
invalidoption_text()