How to print out the 2D array(an airplane seat layout) as follow (at the beginning, all numbers are 0)and if the user input A1(row1,column1), the program will automatically choose the seat, if the user doesn't input anything, the program will randomly choose one seat available. Then, the program will refresh the table when the next user choose again.
Note: "0" represents seat available while "1" not available
Thank you!