(De Morgan’s Laws) In this chapter, we discussed the logical operators &&, || and !. De Morgan’s Laws can sometimes make it more convenient for us to express a logical expression. These laws state that the expression !(condition1 && condition2) is logically equivalent to the expression (!condition1 || !condition2). Also, the expression !(condition1 || condition2) is log- ically equivalent to the expression (!condition1 && !condition2). Use De Morgan’s Laws to write equivalent expressions for each of the following, and then write a program to show that the original expression and the new expression are equivalent in each case.

a.
```
!( x < 5 ) && !( y >= 7 )
```

b.
```
!( a == b ) || !( g != 5 )
```

c.
```
!( ( x <= 8 ) && ( y > 4 ) )
```

d.
```
!( ( i > 4 ) || ( j <= 6 ) )
```


```

1

2

3

4

5

6

7 Solution: 15.15

8

9

Modify the waitfor program to also print the tty number that the user logs on to. That is, the output should look like:

sandy logged onto tty13 if sandy logs on to tty13.

Computer Science & Information Technology

In a data table calculated columns will copy down the table automatically

Indicate whether the statement is true or false

Computer Science & Information Technology

The PictureBox control is used to display:

a) text and images b) only images c) only text d) colors

Computer Science & Information Technology