// GEORGE: Helps you do simple Boolean algebra by // printing out a truth table of an expression // By Dick. // This program is the first (very dumb) prototype... // It is named for George Boole who invented this stuff. #include //On older C++ compilers you may need to uncomment the next two lines //const int true=1; //const int false=0; int expr(int p, int q)//The expression you want to evaluate { return p && q; //change this line } int main() { //uses void put_line(int p, int q);//in: p,q are truth values // to print a line of a truth table cout << " P Q Expr(P,Q)\n"; put_line( true, true ); put_line( true, false); put_line(false, true ); put_line(false, false); return 0; } void put_line(int p, int q)//in: p,q are truth values { // Use the following functions void put_bool(int);// outputs as a True or False string int expr(int, int);// expression being tabulated put_bool(p); put_bool(q); put_bool(expr(p,q)); cout<