Thursday 11 April 2013

Activity 4.2 Blog Task: Or


1. Read the following pseudocode:

If Number > 8 Or Number = 10

Display “This number meets the condition.”

Else

Display “This number does not meet the condition.”

End If


2. Answer the following question:

What number would need to be stored in Number to make this program display the message “This number does not meet the condition”? Why?


Answer

To get the message “This number does not meet the condition” the user would have to select any number that <=8

The pseudocode requires any number greater than 8 to meet the condition

Original Post Feb 27th 2012

No comments:

Post a Comment