National+5+Computing+Logical+Operators

media type="custom" key="27760511"


 * Questions**

1. What would you expect the output of this program to be?

2. What would you expect the output of this program to be?

3. What would you expect the output of this program to be?

4. What would you expect the output of this program to be?

5. A program is required by a restaurant to display a message when they need to reorder stock. The program uses these variables:
 * steaks
 * milk
 * ice_cream
 * roast_beef
 * bacon
 * season
 * day

Write pseudocode to display a message in each the following circumstances.

(a) number of steaks falls below 30 (b) pints of milk falls below 80 (c) tubs of ice cream falls below 25 and the season is "summer" (d) tubs of ice cream falls below 10 and the season is not "winter" (d) roast beef joints fall below 30 and the day is "friday" (e) packets of bacon falls below 30 and the day is a "monday" or a "wednesday"