Description
Sample Runs
Some sample runs are given below, but these are not comprehensive; therefore, you must consider all possible cases to get full mark.
You do not need to give the output exactly as in the sample runs, provided that your output is understandable and clear.
Sample Run 1:
Please enter the name of the file: test
File name is incorrect, please enter again: test1
File name is incorrect, please enter again: test.txt
File name is incorrect, please enter again: test1.txt
“sample” was put into the matrix with given starting point: 0,0
direction: r orientation: CW
s a m p l – – – – e
- – – – –
- – – – –
- – – – –
“puzzle” could not be put into the matrix with given starting point:
0,1 direction: d orientation: CW s a m p l – – – – e
- – – – –
- – – – –
- – – – –
“puzzle” was put into the matrix with given starting point: 1,1 direction: l orientation: CW s a m p l u p e – e z z l – – – – – – –
- – – – –
“apple” was put into the matrix with given starting point: 3,2 direction: d orientation: CCW s a m p l u p e – e z z l – – – – a – e
- – p p l
“four” was put into the matrix with given starting point: 3,0 direction: u orientation: CCW s a m p l u p e – e z z l – – f r a – e o u p p l
“one” could not be put into the matrix with given starting point: 2,3 direction: r orientation: CW s a m p l u p e – e z z l – – f r a – e o u p p l
“one” was put into the matrix with given starting point: 1,3 direction: r orientation: CW
s a m p l u p e o e z z l n e f r a – e o u p p l
“a” was put into the matrix with given starting point: 3,3 direction: l orientation: CW s a m p l u p e o e z z l n e f r a a e
o u p p l
Sample Run 2:
Please enter the name of the file: test2.txt
“fructosamine” was put into the matrix with given starting point: 1,2 direction: r orientation: CCW a s o t c m i f r u – n e – –
“cryptoxanthin” could not be put into the matrix with given starting point: 0,0 direction: l orientation: CW a s o t c m i f r u – n e – –
Sample Run 3:
Please enter the name of the file: test3.txt
“fructosamine” could not be put into the matrix with given starting point: 1,0 direction: r orientation: CCW
- – – – –
- – – – –
- – – – –
- – – – –
- – – – –
“fructosamine” was put into the matrix with given starting point: 1,0 direction: r orientation: CW – – – – – f r u c t – – – – o – – – – s e n i m a
“trouble” could not be put into the matrix with given starting point:
0,0 direction: r orientation: CW – – – – – f r u c t – – – – o – – – – s e n i m a
“trouble” was put into the matrix with given starting point: 2,2 direction: r orientation: CW – – – – – f r u c t e – t r o l b u o s e n i m a
Sample Run 4:
Please enter the name of the file: test4.txt
“a” was put into the matrix with given starting point: 0,0 direction: l orientation: CW a
Sample Run 5:
Please enter the name of the file: test5.txt
Invalid input for direction! Direction: qsd
Invalid input for direction! Direction: q
Starting point is out of range! Point: 3,1
Starting point is out of range! Point: -1,1
Starting point is out of range! Point: 1,-1
Starting point is out of range! Point: 1,3
Invalid input for orientation! Orientation: CCWW
Invalid input for orientation! Orientation: 123
Invalid line! Number of values is different than 5.
Invalid line! Number of values is different than 5.
Invalid line! Number of values is different than 5.
Starting point is out of range! Point: -1,-2
“trueInput” was put into the matrix with given starting point: 0,0 direction: l orientation: CW t r u n I e p u t
Sample Run 6:
Please enter the name of the file: test6.txt
Invalid number for row and/or column!
Sample Run 7:
Please enter the name of the file: test7.txt
“therefore” could not be put into the matrix with given starting point: 0,1 direction: r orientation: CW
– – – – – – – – –
“therefore” was put into the matrix with given starting point: 0,8 direction: r orientation: CW e r o f e r e h t
Sample Run 8:
Please enter the name of the file: test8.txt
“therefore” was put into the matrix with given starting point: 8,0 direction: r orientation: CCW e r o f e r e h t