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:lu06:aufgaben:08 [2025/05/19 13:58] – vdemir | en:modul:m291:learningunits:lu06:aufgaben:08 [2025/05/20 13:37] (aktuell) – vdemir | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | ====== LU06.A08 - Events - basic calculator | + | ====== LU06.A08 - Events - basic calculator ====== |
| ===== 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 browser based calulator which can sum up 2 digits in the easiest way. | * Expected result: A browser based calulator which can sum up 2 digits in the easiest way. | ||
| Zeile 21: | Zeile 21: | ||
| * A04: Safe it. | * A04: Safe it. | ||
| - | ===== Assignment B - Variables - 5' ===== | + | ===== Assignment B - Variables - 2' ===== |
| * B01: To make an addition work in our VUE instance we need threee variables with the corresponding initial values | * B01: To make an addition work in our VUE instance we need threee variables with the corresponding initial values | ||
| * diggit1:0 | * diggit1:0 | ||
| Zeile 27: | Zeile 27: | ||
| * result: | * result: | ||
| - | ===== Assignment C - Button for diggit 1 - 10' ===== | + | ===== Assignment C - Button for diggit 1 - 5' ===== |
| * C01: Create the buttons 1 to 4 (that shall suffice for our purpose) | * C01: Create the buttons 1 to 4 (that shall suffice for our purpose) | ||
| * C02: When clicking on one of them the content will be saved in the variable **diggit1** with the corresponding number 1-4, meaning when clicking the 1, the variable diggit will be set with 1. | * C02: When clicking on one of them the content will be saved in the variable **diggit1** with the corresponding number 1-4, meaning when clicking the 1, the variable diggit will be set with 1. | ||
| - | ===== Assignment D - Button for diggit 2 - 2' ===== | + | ===== Assignment D - Button for diggit 2 - 3' ===== |
| * D01: Create the second set of buttons 1 to 4 to set the second diggit. (4 of them shall suffice for our purpose) | * D01: Create the second set of buttons 1 to 4 to set the second diggit. (4 of them shall suffice for our purpose) | ||
| * D02: When clicking on one of them the content will be saved in the variable **diggit2** | * D02: When clicking on one of them the content will be saved in the variable **diggit2** | ||
| - | ===== Assignment E: Implementation of the calculation - 10' | + | ===== Assignment E: Implementation of the calculation - 5' |
| * E01: To execute our addition-operation we finally need a button **Operator**-button. | * E01: To execute our addition-operation we finally need a button **Operator**-button. | ||
| * E02: Clicking this operator-Button adds diggit1 to diggit2 and displays the result (result = diggit1 + diggit2) | * E02: Clicking this operator-Button adds diggit1 to diggit2 and displays the result (result = diggit1 + diggit2) | ||