Convert each of the following expressions into sum of produc
Convert each of the following expressions into sum of products and product of sums - also, show the truth table for each (A\'B + C)(AB + C\')(AB\' + C\') x\' + yz (x+y\') (y+z\') + xy
Solution
#include <iostream>
#include <cstdlib>
#include <string>
#include \"String.h\"
using namespace std;
int main (int argc, char **argv)
{
//Testing Default constructor, length, and print
String one;
cout << \"The length of String one is: \" << one.length() << endl;
cout << \"The value of String one is: \";
one.print();
//Testing Alternate constructor, length, and print
char test[256] = \"Hello world\";
String two(test);
cout << \"The length of String two is: \" << two.length() << endl;
cout << \"The value of String two is: \";
two.print();
//Testing the overloaded [] operator. This replaces your at() function.
cout << \"The first letter is: \" << two[0] << endl;
return 0;
}
