no way to compare when less than two revisions

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.


de:modul:m319:learningunits:lu12:loesungen:hofladen [2025/06/23 07:45] (aktuell) – ↷ Seite von modul:m319:learningunits:lu12:loesungen:hofladen nach de:modul:m319:learningunits:lu12:loesungen:hofladen verschoben msuter
Zeile 1: Zeile 1:
 +====== LU12.L02 - Hofladen ======
 +~~NOCACHE~~
 +
 +===== Funktionen =====
 +<code python>
 +def input_int(prompt):
 +    """
 +    reads an integer input from the user
 +    :param text: the prompt to be shown
 +    :return: the integer number
 +    """
 +    pass
 +    
 +def input_float(prompt):
 +    """
 +    reads a decimal number input from the user
 +    :param text: the prompt to be shown
 +    :return: the decimal number
 +    """
 +    pass
 +    
 +def find_article(list, name):
 +    """
 +    finds an article in the article list
 +    :param list: the article list
 +    :param name: the article name to be found
 +    :return: article or None=not found
 +    """
 +    pass
 +    
 +</code>
 +
 +===== Vorgehensschritte =====
 +  * <color #22b14c>Schritt 1</color>
 +  * <color #00a2e8>Schritt 2</color>
 +  * <color #ff7f27>Schritt 3</color>
 +
 +  - <color #00a2e8>Erstelle eine leere Liste für die Artikel</color>
 +  - <color #22b14c>Eingabe des Artikelnamens</color>
 +  - <color #22b14c>Solange Artikelname nicht ''Exit'' ist</color>
 +    - <color #00a2e8>Suche den Artikel in der Liste</color>
 +    - <color #00a2e8>Falls keine Artikel gefunden wurde</color>
 +      - <color #ff7f27>Erstelle ein neues Artikel-Objekt und speichere es in der Liste</color>
 +      - <color #ff7f27>Speichere den Artikelnamen</color>
 +      - <color #00a2e8>Eingabe des Preises</color>
 +    - <color #00a2e8>Sonst</color>
 +      - <color #ff7f27>Ausgabe des aktuellen Bestands</color>
 +    - <color #ff7f27>Eingabe der Menge</color>
 +    - <color #ff7f27>Addiere die Menge zum Bestand</color>
 +    - <color #22b14c>Eingabe des Artikelnamens</color>
 +  - <color #00a2e8>Gib die Artikelliste als Returnwert zurück</color>
 +
 +===== Sourcecode =====
 +{{gh>https://github.com/templates-python/m319-lu12-a02-farmshop/blob/solution/article.py}}
 +
 +{{gh>https://github.com/templates-python/m319-lu12-a02-farmshop/blob/solution/shop.py}}
 +
 +
  
  • de/modul/m319/learningunits/lu12/loesungen/hofladen.txt
  • Zuletzt geändert: 2025/06/23 07:45
  • von msuter