Thursday, 11 April 2013
Activity 4.3 Blog Task: And
1. Read the following pseudocode:
If Number > 8 And 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 and >=10
The pseudocode requires the number 9 to meet the condition
Original Post Feb 27th 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment