Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
en:modul:m291:learningunits:lu07:aufgaben:09 [2025/05/20 12:50] – [Assignment C - Variables - 1'] vdemiren: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()**. As all relevant variable are set by now (diggit1, operator, diggit2) we are ready to finalize our calculation +  * G01: To execute our addition-operation we finally need a button **ENTER**. This triggers the method **caldResult()**. 
-  * G03: Display the result of the variable **result** on the screen.+  * G02: All relevant variables (diggit1, operator, diggit2) are set know, we are ready to finalize our calculation. 
 +  * 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 as **this.result = this.diggit1 + this.diggit2" 
 +    * And subsequently, if the calculator is a minus**-** the result is calculated as **this.result = dthis.diggit1 - this.diggit2** 
 +    * The Multiplication and the division a conducted in the same fashion. 
 +  * G04: Finally have the **result** displayed on the screen to check the correctness of your efforts.
  
 ===== Solution ===== ===== Solution =====
  • en/modul/m291/learningunits/lu07/aufgaben/09.1747738244.txt.gz
  • Zuletzt geändert: 2025/05/20 12:50
  • von vdemir