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:loesungen:03 [2025/05/15 11:36] – vdemir | en:modul:m291:learningunits:lu07:loesungen:03 [2025/06/05 12:22] (aktuell) – vdemir | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
- | ====== LU07.S03 - Methods with arguments | + | ====== LU07.S03 - Methods with several |
- | ===== Assignment | + | ===== Assignment ====== |
- | * A01: Test the code example above which was provided to you. Describe the behaviour of the script using HTML comments. | + | * 01: Test the code example above which was provided to you. Describe the behaviour of the script using HTML comments. |
- | * A02: Make sure that everthing is working correctly: | + | * 02: Make sure that everthing is working correctly: |
- | - increments by 1 | + | |
- | - decrements by -1 | + | * 04: : You need to wo more animals |
- | - increments by +5 | + | |
- | | + | |
- | + | ||
- | ===== Assignment B ===== | + | |
- | * B01: Currently we can increment by +1 and +5, and decrement by -1. | + | |
- | * B02: Similar | + | |
- | * B03: Test your results and save it. | + | |
- | * B04: Add more buttons wich can | + | |
- | - increment by +10 | + | |
- | - decrement by -10 | + | |
- | - decrement by -5 | + | |
- | * B05: The aim is to have 3 increment-buttons (+1, +5, +10) and 3 decrement-buttons (-1, -5, -10) | + | |
- | + | ||
- | ===== Assignment C ===== | + | |
- | * 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 | + | |
- | * C03: Check the result: It must stop at zero when the button **removeMoose** when the count reaches 0. | + | |
===== Solution ===== | ===== Solution ===== | ||
+ | {{: | ||
- | {{ : | + | {{ : |
- | {{: | ||
===== Vocabulary ===== | ===== Vocabulary ===== | ||
Zeile 33: | Zeile 17: | ||
| ... | ... | | | ... | ... | | ||
- | ---- | + | |
+ | ----- | ||
[[https:// | [[https:// | ||