Booleans, if-else

Hi, after finishing practical exerciseimage
i did it another way than in solutions sheet
here is my program
image
is my solution righht ?