COM 1100 Professor Fell Quiz 8A Solution
Problem 1
5 7 9
16 25 41
16 25 9
Problem 2
5 7 5
5 7 10
6 8 11
5 7 35
Problem 3
for (N = 6405; N > 1; N /= 4)
cout << N << " * ";
cout << 1;
Problem 4
double rectangleArea(double height, double width){
return height*width;
}
Problem 5
bool IsOp(char ch){
return ((ch == '+') or (ch == '-') or (ch == '*') or (ch == '/'));
}
Problem 6
0 3
1 5
2 4
3 2
4 1
5 7
6 1
7 6
0 3
0 3
1 5
0 3
1 5
2 4
Last Updated: November 16, 1997 12:57 pm 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/Q8ASolution.html