Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung | |||
| en:modul:m291:learningunits:lu07:aufgaben:09 [2025/05/20 12:50] – [Assignment C - Variables - 1'] vdemir | en:modul:m291:learningunits:lu07:aufgaben:09 [2025/05/20 12:58] (aktuell) – [Assignment G: Implementation of the calculation - 10'] vdemir | ||
|---|---|---|---|
| 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 ===== | ||