created: 07/07/06; corrected 03/30/10, revised 07/04/2011
1. Complete the following truth table:
2. Complete the following truth table:
3. Complete the following truth table:
!A && B equivalent to
A || !B ?
Complete the table to find out.
5. You wish to purchase a certificate of deposit, but only if the interest rate is greater than three percent and the minimum deposit is less than 10000. Fill in the blanks.
Rewrite the above fragment so that it fits the following.
(The first program fragment is probably the best way to write this.)
A program is searching for books with a call number that starts "QA" published
between 1990 and 1995 (inclusive) with the word "web" in the title.
Assume that the attributes of a book are accessed by
indexOf( String sub ) returns the integer index of the substring,
or -1 if the substring is not found.
End of the Exercise. If you want to do it again, click on "Refresh" in your browser window.