Name: ________________________________

Honor Code Acknowledgment: _____________________________


CPS 6, Summer 1999                 Random Quiz 2

Due: Tuesday, May 25, 1999                 5 points


Problem 1: Christmas (3 points)

Write a C++ function named Christmas so that the function calls:

   Christmas("French", "Noel");
   Christmas("German", "Weihnachten");

produces the following output:

In French, one says "Noel".
In German, one says "Weihnachten".

Hint: To print a " type \".











Problem 2: Output (2 points)

What is the output of the following cout statements? (indicate where blanks are using "_")

     cout << "Hello " << 4 + 5 << "=" <<  "4 + 5" << endl;
     cout << "That " << endl << "is " << endl <<
          "all " << endl << endl << "folks" << endl;