But I need this data to be represented in a grid of rows and columns. Vacant spaces should be marked as '-' , while taken spaces should be 'O'. Program must prompt user to enter row and column , and check whether space is vacant , if it is vacant , the user can enter new entry. I want it to look something like this :
Section 1
1 2 3 4 5 6 7 8 9 10
1 - - - - - - - - - -
2 - - - - - - - - - -
3 - - O - - - O - - -
4 - - - - - - - - - -
5 - - - - - - - - - -
6 - - - - - O - - - -
7 - - - - - - - - - -
8 - - - - - - - - - -
9 - - - - - - - - - -
10- - - - - - - - - -
Now this has to be repeated for each 5 sections.