5.22 (De Morgan’s Laws) In this chapter, we discussed the logical operators &&, || and !. DeMorgan’s laws can sometimes make it more convenient for us to express a logical expression. Theselaws state...

5.22 (De Morgan’s Laws) In this chapter, we discussed the logical operators &&, || and !. DeMorgan’s laws can sometimes make it more convenient for us to express a logical expression. Theselaws state that the expression !( condition1 && condition2 ) is logically equivalent to the expression( !condition1 || !condition2 ). Also, the expression !( condition1 || condition2 ) is logically equivalentto the expression ( !condition1 && !condition2 ). Use De Morgan’s laws to write equivalentexpressions for each of the following, then write a program to show that the original expression andthe new expression in each case are equivalent:a) !( x < 5="" )="" &&="" !(="" y="">= 7 )b) !( a == b ) || !( g != 5 )c) !( ( x <= 8="" )="" &&="" (="" y=""> 4 ) )d) !( ( i > 4 ) || ( j <= 6="" )="">

May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here