COM 1100 Professor Fell Quiz 1B September 25, 1997
Name

1. Use the windows below to show the output of the following code:
(The grid boxes are 20 pixels apart.)

// function prototype
void somestuff();

main()
{
	BigSquarePair();							// Makes the windows
	somestuff();
	cout << "Make the next quiz harder." << endl;
	
	PaintRect(200, 30, 250, 140);
	FrameOval(10, 100, 60, 200);
	DrawLine(300, 240, 100, 360);
	FrameCircle(320, 340, 40);
	
	PressReturn("Done!");
}

void somestuff()
{
	int x;
	int y;
	x = 25;
	y = 7;
	cout << "x = " << x << endl << "y = " << y << endl;
	cout << "x + y = " << x + y << " and x/y = " << x/y << endl;
	cout << "x - y * 3 - 10 = " << x - y * 3 - 10 << endl;
}

2. What is the difference between the files warmup.mu and warmup.cp? Why do we need both? (The Greek letter "mu" is not yet available in HTML.)

Last Updated: September 28, 1997 11:04 am by

Harriet Fell
College of Computer Science, Northeastern University
360 Huntington Avenue #161CN,
Boston, MA 02115
Internet: fell@ccs.neu.edu
Phone: (617) 373-2198 / Fax: (617) 373-5121
The URL for this document is: http://www.ccs.neu.edu/home/fell/COM1100/QUIZ/QUIZ1B.html