## Truth Tables and De Morgan's Rules

Read this chapter, which discusses Boolean variables as used in decision tables. Truth tables are used to collect variables and their values relative to decisions that have to be made within control structures.

### 5. Computer Purchase Problem

Answer:    A       B       C   -000-001-010-011-100-101-110-111-
A       B       C   -FFF-FFT-FTF-FTT-TFF-TFT-TTF-TTT-

# Computer Purchase Problem

Say that you are shopping for a new computer. You will reject any computer that does not meet your minimum requirements. You require: speed of more than 2000 MHz and more than 512 Meg of memory.

if (  ______(speed > 2000 && memory > 512)  )  System.out.println("Reject this computer");  else  System.out.println("Acceptable computer");

Question 5:What should go in the blank so that the program fragment is correct?(Hint: this is NOT a hard question.)