forked from msnow/Schmyrhon
26 lines
911 B
Python
26 lines
911 B
Python
produkt = input('Welches Produkt (Gummibaerchen, Lakritzstangen, Playstation) wünschen Sie?')
|
|
menge = int(input('Welche Menge wünschen Sie?'))
|
|
|
|
Gummibaerchen = float(0.05)
|
|
Lakritzstangen = float(0.30)
|
|
Playstation = float(199.00)
|
|
|
|
GBpreis = Gummibaerchen * menge
|
|
LSpreis = Lakritzstangen * menge
|
|
PSpreis = Playstation * menge
|
|
|
|
match produkt:
|
|
case 'Gummibaerchen':
|
|
print ('Netto ohne MwSt: EUR', GBpreis/1.07)
|
|
print ('MWSt: EUR', GBpreis-GBpreis/1.07)
|
|
print ('Zu bezahlen: EUR', GBpreis)
|
|
case 'Lakritzstangen':
|
|
print ('Netto ohne MwSt: EUR', LSpreis/1.07)
|
|
print ('MWSt: EUR', LSpreis-LSpreis/1.07)
|
|
print ('Zu bezahlen: EUR', LSpreis)
|
|
case 'Playstation':
|
|
print ('Netto ohne MwSt: EUR', PSpreis/1.07)
|
|
print ('MWSt: EUR', PSpreis-PSpreis/1.07)
|
|
print ('Zu bezahlen: EUR', PSpreis)
|
|
case _:
|
|
print('Falscher Artikelname!') |