LU07.A09 - Basic caluclator with methods

Prerequisites

Source

Take the solution of LU06.S08source-code and extend it

Assignment

In LU06.S08 we were programming a basic calulator by manipulation the values directly when clicking the buttons. This is convenient, but limits the possibilities of the calculator significantly. For example handling the divided-by-zero operation can hardly be handled with events only.

Thus, it is basically a similar assignment, but this time by using methods:

Assignment A - 3'

Assignment B - Required methods - 16'

Assignment C - Variables - 1'

Assignment D - Button for diggit 1 - 10'

Assignment E - Button the operation - 5'

Assignment F - Button for diggit 2 - 5'

Assignment G: Implementation of the calculation - 10'

Solution

Lösung

Vocabulary

English German
diggit Ziffer
initial values Startwerte
to conduct umsetzten
respectively beziehungsweise
to compraise umfassen

Volkan Demir