URGENT: Need help with Array homework

There is this assignment that is due on Monday and it has been really frustrating to me. As you can see by the quote below, the purpose of the program is to assign people seats at a theater.

 ``123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596`` ``````#include using namespace std; #define PREM_ROWS 5 #define REG_ROWS 20 #define SEATS 10 bool premSeats[PREM_ROWS][SEATS]; bool regSeats [REG_ROWS][SEATS]; char seatLabels[SEATS]; void initializeArrays(){ char letter = 'A'; for(int r = 0;r> premOrReg; cout << "# of tickets: "; cin >> tickets; //if Premium is chosen if(premOrReg == 1) { while(premRowToFill < PREM_ROWS) { // if(tickets <=filledSeatsInRow) cout << "Your seats are: "; while(premSeatIndex < tickets) { premSeats[premRowToFill][premSeatIndex] = true; cout << premRowToFill+1 << seatLabels[premSeatIndex] << " " ; premSeatIndex++; } premRowToFill++; premSeatIndex = 0; break; } cout << endl; } if(premOrReg == 2) { } } while((premOrReg == 1)||(premOrReg == 2)); return 0; } ``````
 ``12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061`` ``````#include using namespace std; #define PREM_ROWS 5 #define SEATS 10 bool premSeats[PREM_ROWS][SEATS] = {false}; int main() { int premOrReg; int tickets; int filledSeatsInRow = 0; int premSeatsLeft = SEATS * PREM_ROWS; do { cout << "Premium(1) or Regular (2): "; cin >> premOrReg; cout << "# of tickets: "; cin >> tickets; if(premOrReg == 1 && premSeatsLeft >= tickets) { cout << "Your seats are: "; for (int row = 0; row < PREM_ROWS; row++) { for(int col = 0; col < SEATS; col++) { if(tickets == 0) { break; } else if(premSeats[row][col] == false) { cout << row + 1<< char(col + 65) << ", "; premSeats[row][col] = true; premSeatsLeft--; tickets--; } } } } else cout << "Sorry not enough premium seats to fill your order" << endl; cout << endl; }while((premOrReg == 1)||(premOrReg == 2)); return 0; }``````