Assignment 5 - Logical Operators
This assignment refreshes your knowledge of logical operators and prepares you for a thorough understanding of the differences between logical operators and bit-level operators, which will be discussed in class.
These activities require the use of your "Programming in C" zyBook:
Read sections 3.1 - 3.2 (inclusive) of chapter 3, "Logical Operators".
Complete all participation and challenge activities listed in these sections:
Notice how a boolean datatype is really defined as an integer datatype. Because
only the least significant bit is used to represent True or False,
on a machine that uses a 32-bit integer representation for example, 31 of these bits are
- 3.1 Logical Operators
- 3.2 Boolean Data Types
The online nature of the zyBook encourages you to try things out and gives you immediate feedback.
There is no limit on how many attempts you can make on the zyBook activities, and all that will be
counted for your grade is completion of the required activities. Note however that your solutions are
not permanently stored by the system, so if you refresh the current page or move to a different page,
your answers will be lost. This feature is intentional, so that students can practice their
understanding of the material as many times as they wish to.
What to turn in
- Nothing. The system will keep track of all completed tasks for each individual student.