University of Ottawa, School of IT and Engineering

 

CSI1102 Mark Sheet:

LAB Assignment 4, 2005

 

Student Name:

 

 

Student Number:

 

 

 

Mark

Total

Question 1

Appropriate ‘white spaces’ and comments

Read string from keyboard

Recursion Termination condition

Recursive part

Compile

Run correctly

 

 

0.5

0.5

1

1

1

1

Question 2

Appropriate ‘white spaces’ and comments

Displaying results

printStack(Stack s)

reverseStack(Stack s)

removeElement(Stack s, int val)

Keep stack unchanged

Meaningful names of variables

Compile

Run correctly

 

 

0.5

0.5

1.5

1.5

2

1

1

1

1

Question 3

StackEmptyException class

Usage of throws and throw

Testing exception

Compile

Run correctly

 

 

2

1

1

0.5

0.5

TOTAL

 

20

Marked By:

TA  Name

 

TA signature

 

Date