Youareencouragedtousethebacksofthesepagesforscratchpap

This is the end of the preview. Sign up
to
access the rest of the document.

Unformatted text preview: n some function that any necessary libraries have been
included.
• When you are asked to write a complete program, you must write the
#include statements, the int main(), etc. in your solution to receive full
credit.
• A line consisting solely of “…” represents one or more unspecified C++
statements, some of which may change the values of program variables.
• You are encouraged to use the backs of these pages for scratch paper. If you
want answers written there to be graded, they must be very clearly labeled
and also noted on the main test, e.g. “See the back of page 1 for 3a.” Problem 1: 15 points.
What is the output of each of the following snippets of code?
(a)
fo...
View Full
Document