65 789
Assignments Done
99,4%
Successfully Done
In October 2018

Answer to Question #10255 in C++ for Fayie

Question #10255
how to assign seats in c++ of each airlines plane with 10 rows [A-j] of 5 seats each
Expert's answer
how to assign seats in c++ of each airlines plane with 10 rows [A-j] of 5 seats each

using namespace std;

class seat{
public:
int num;
char row;
};

seat plane[10][5];

char Alphabet[] = { 'A','B','C','D','E','F','G','H','I','J' };

void main(){
for (int i=0; i<=9; i++){
for (int j=0; j<=4; j++){
plane[i][j].row = Alphabet[i];
plane[i][j].num = j;
cout<<Alphabet[i]<<"\n";
}
}
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions