Here is the first "homework". You can attempt this during your regular lab time on Friday, or at any other time when you can find a spot in the lab. A TA won't be there, but you won't need a TA. Type the following lines of C++ code using your favorite text editor. Call the program simple.cc //This is a simple C++ program #include using namespace std; //Lets you use all symbols in the standard namespace //such as cout without the std:: throughout your //program //Even if you take this out, the code will still work //and you won't get any compile-time errors //with most C++ compilers int main(){ int i; int j; int z = 1; if (!z) { i = 0; j = 0; } else if ( z > 0) { i = 1; j = 1; } else { i = 2; j = 2; } cout << "i = " << i << ", " << "j = " << j << endl; return 0; } Then type the following command at the command prompt: g++ -o simple simple.cc Then type at the command prompt simple to execute your program. Look at the output Attempt the following exercises: Replace the !z conditional with z == 0 What happens ? Replace the !z conditional with !(z != 0) What happens ? Replace the !z conditional with !(z == 0) What happens ? Try to reason about the output you get in each case and why you get it.