Exercise Sheet 6, question 3 b

Hello everyone,

I was wondering why the solution of program 2 (exercise 3, b) uses Binary_!= instead of Binary_<?
I mean, logically, they both do the same for certain situations. I could think of the situation that the developer thought “as long as b is not a, do the following…”, which can be expressed by the <-operator and also by the !=-operator. But I’m not quiet sure if this is the reason for this.

Thanks in advance,
David

Attachments:

image
image

2 Likes

The answer is simply that we messed up. Sorry, This will be fixed with the next update.

Here’s the correct solution:

image

2 Likes