COM 1100 Professor Fell Quiz 5A Solution

Problem 1.
reversed
in order

Problem 2.
3
5
4

Problem 3.
int SumSquares(int N){
	int sum = 0;
	for (int J = 1; J <= N; J++)
		sum += J*J;
	return sum;
}

Problem 4.
bool InWindow(int x, int y){
	return ((0 <= x) and (x <= 200) and (0 <= y) and (y <= 200));
}


Last Updated: November 11, 1997 8:09 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/Q5ASolution.html