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:09 [2025/05/20 12:50] – vdemir | en:modul:m291:learningunits:lu07:aufgaben:09 [2025/05/20 12:58] (aktuell) – [Assignment G: Implementation of the calculation - 10'] vdemir | ||
|---|---|---|---|
| Zeile 36: | Zeile 36: | ||
| * C02: Set in the data-area: * diggit1: 0 | * C02: Set in the data-area: * diggit1: 0 | ||
| * C03: operator: ' | * C03: operator: ' | ||
| - | * C03: diggit2: 0 | + | * C04: diggit2: 0 |
| - | * C04: result: 0 | + | * C05: result: 0 |
| ==== Assignment D - Button for diggit 1 - 10' ==== | ==== Assignment D - Button for diggit 1 - 10' ==== | ||
| Zeile 57: | Zeile 57: | ||
| ==== Assignment G: Implementation of the calculation - 10' | ==== Assignment G: Implementation of the calculation - 10' | ||
| - | * G01: To execute our addition-operation we finally need a button **ENTER**. This triggers the method **caldResult()**. | + | * G01: To execute our addition-operation we finally need a button **ENTER**. This triggers the method **caldResult()**. |
| - | * G03: Display | + | * G02: All relevant |
| + | * G03: In the method **calcResult** we need to execute the calculation bases on the provided **operator**. | ||
| + | * If the operator is a **+** we calculate our result | ||
| + | * And subsequently, | ||
| + | * The Multiplication and the division a conducted in the same fashion. | ||
| + | * G04: Finally have the **result** displayed | ||
| ===== Solution ===== | ===== Solution ===== | ||