Dear Rony,

 

Here you will find the 2 assignments of yesterday from our group:

 

currentTime = TIME()

say "Die aktuelle Zeit ist:" currentTime

currentDate =Date()

say "es ist heute der:" currentDate

textLength = LENGTH(text)

say "die Länge des Texts ist:" textlength

 

 

/**/ 

SIGNAL ON USER DIDNOT_PASS /* intercept a user exception */ 

CALL points 30 

CALL points 25 

CALL points 17 

EXIT 0 

DIDNOT_PASS: /* dealing with the user exception */ 

SAY "// caught exception 'DIDNOT_PASS' \\" 

EXIT -1 

::ROUTINE points 

PARSE ARG points 

SAY "--> points:" points 

IF points < 18 THEN RAISE USER didnot_pass 

ELSE SAY "--> checked o.k." 

EXIT 0 

 

 

Kind regards,

Steffi, Milos and Giorgia