1. Test a logical OR condition
Your program is to read in 2 results indicating whether the result is a pass or a fail. The user need
only pass one of the tests in order to be considered competent. You are to use the logical “OR”
operator to determine their competence. Display a message indicating whether they are competent
or not yet competent.
Page name: LogicalOr.html
Decision structure: if-else using ||
2. Test a logical AND condition
Your program is to read in 2 results indicating whether the result is a pass or a fail. The user must
pass both of the tests in order to be considered competent. You are to use the logical and operator
to determine their competence. Display a message indicating whether they are competent or not yet
competent.
Page name: LogicalAnd.html
Ded structure: if-else using &&
3. Test a logical NOT condition
Your program is to read in the age from the keyboard. If the age is not less than 18 you are to
display a message informing the user that they are eligible to enroll to vote.
Page name: LogicalNot.html
Decision structure: if-else using “!” operator