Assignment12v2

Assignment12v2 - In this exercise, you need to make the...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Assignment 12 Using Boolean Variables Write a program to create the following truth table. DO NOT HARD-CODE THE ANSWERS IN THE OUTPUT! This means that each of the cout statements must use variables for the "1" and "0" values.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: In this exercise, you need to make the output match exactly, including the spacing on each line. x | y | (x && y) | !(x && y) =============================== 1 | 1 | 1 | 0 1 | 0 | 0 | 1 0 | 1 | 0 | 1 0 | 0 | 0 | 1...
View Full Document

This note was uploaded on 01/11/2010 for the course CMPSC 101 taught by Professor Drobish,renee during the Summer '07 term at Penn State.

Ask a homework question - tutors are online