Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
en:modul:m291:learningunits:lu07:aufgaben:02 [2025/05/05 13:19] – vdemir | en:modul:m291:learningunits:lu07:aufgaben:02 [2025/05/15 11:33] (aktuell) – vdemir | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
- | ====== LU07.A02 - Events - Moose-count | + | ====== LU07.A02 - Methods with arguments |
===== Prerequisites | ===== Prerequisites | ||
* Work type: Individual | * Work type: Individual | ||
* Means of aid: only teaching materials, no websearch, no use of ai. | * Means of aid: only teaching materials, no websearch, no use of ai. | ||
- | * Timeframe: | + | * Timeframe: |
* Expected result: A Vue-Script, which uses methods to display messages on the screen and increments and decrements a counter. | * Expected result: A Vue-Script, which uses methods to display messages on the screen and increments and decrements a counter. | ||
* | * | ||
Zeile 33: | Zeile 33: | ||
* B05: The aim is to have 3 increment-buttons (+1, +5, +10) and 3 decrement-buttons (-1, -5, -10) | * B05: The aim is to have 3 increment-buttons (+1, +5, +10) and 3 decrement-buttons (-1, -5, -10) | ||
- | ===== Assignment C: Catching numbers belov zero (0) - 7' ===== | + | ===== Assignment C: Catching numbers belov zero (0) - 8' ===== |
* C01: At 0 we must stop counting, when the count reches the zero. | * C01: At 0 we must stop counting, when the count reches the zero. | ||
* C02: Add the case below zero to your **removeMoose-method** by checking the **count** with a if-statement | * C02: Add the case below zero to your **removeMoose-method** by checking the **count** with a if-statement | ||
* C03: Check the result: It must stop at zero when the button **removeMoose** when the count reaches 0. | * C03: Check the result: It must stop at zero when the button **removeMoose** when the count reaches 0. | ||
+ | * C04: In the case below zero the user must be informed accordingly. | ||
===== Solution ===== | ===== Solution ===== |