Suduku Game
SOLUTION:
Click here to download ................
Design Problem II CSE361
|
|
|
|
D |
|
|
|
|
|
|
|
|
P |
|
|
|
|
|
|
|
|
R |
|
|
|
|
|
|
|
|
O |
|
|
|
|
|
|
|
|
B |
|
|
|
|
|
|
|
|
L |
|
|
|
|
|
|
|
|
E |
|
|
|
|
|
|
|
|
M |
|
|
|
|
You have to draw a rectangle containing 9 x 8 squares. In 1st row’s 5th column, D is to be printed. In 2nd row’s 5th column, P is to be printed. In 3rd row’s same column, R is to be printed and so in further rows and same columns as shown above. Now , suppose Roll no.1’s name is Rajiv Gandhi, now in 1st row, 1st column R is to be printed. In 1st row, 3rd column A is to be printed. In 1st row, 3rd column J is to be printed. It means one square must be left in between each letter. The 5th column should also be considered like a square that should be treated as empty. When we will print finally whole name, it’ll be displayed as below-
R |
|
A |
|
D |
J |
|
I |
|
|
V |
|
G |
P |
|
A |
|
N |
D |
|
H |
|
R |
I |
|
|
|
|
|
|
|
O |
|
|
|
|
|
|
|
|
B |
|
|
|
|
|
|
|
|
L |
|
|
|
|
|
|
|
|
E |
|
|
|
|
|
|
|
|
M |
|
|
|
|
Similarly roll no.2’s name will start from 1st row 2nd column, suppose his name is Rehan Fazal. It will be displayed as-
|
R |
|
E |
D |
|