Download SQA Higher Computing Unit 2 Software Development
Transcript
6.13. THE IF.. THEN.. ELSE STATEMENT % (4& *& ! F% " L % && ! 7 ! 0 & &0 & &0 0 &H . & 7 ! 0 & &0 & &0 0 &H 3 H& ) This file (WashCar.txt), can be downloaded from the course web site. Code 6.11 The program output is shown in Figure 6.15. Figure 6.14: 6.13.6 Logical XOR (Exclusive OR) If either the expression before the or after the is , then the whole expression is . in this case, however if both the expressions are true, the expression will evaluate to . So or means ’either one, or the other but not both’. Hence the term exclusive. c H ERIOT-WATT U NIVERSITY 2006 155