2020-09-16 15:01:12 +02:00
|
|
|
try:
|
|
|
|
from common.inputChecking.boolInput import boolInput
|
|
|
|
from common.inputChecking.typeCheck import inputTypeCheck
|
|
|
|
except ModuleNotFoundError:
|
|
|
|
print('Sjekk README.md for hvilke flagg python trenger')
|
|
|
|
exit(1)
|
2020-09-07 14:44:46 +02:00
|
|
|
|
|
|
|
|
2020-09-07 14:53:57 +02:00
|
|
|
def miniPriceBranch():
|
|
|
|
choseMiniPrice = boolInput('Minipris 199,- kan ikke refunderes/endres\nØnskes dette (J/N)? ')
|
|
|
|
print('Takk for pengene, god reise!' if choseMiniPrice else 'Da tilbyr vi fullpris: 440,-')
|
2020-09-07 14:44:46 +02:00
|
|
|
|
|
|
|
|
2020-09-16 15:01:12 +02:00
|
|
|
if __name__ == "__main__":
|
|
|
|
daysToTrip = inputTypeCheck('Dager til du skal reise? ', int)
|
2020-09-07 14:44:46 +02:00
|
|
|
|
2020-09-16 15:01:12 +02:00
|
|
|
if daysToTrip >= 14:
|
|
|
|
miniPriceBranch()
|
|
|
|
else:
|
|
|
|
print('For sent for minipris; fullpris 440,-')
|