Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

write a program in C language using arrays for booking ticketsof bus (6 seats) t

ID: 3615671 • Letter: W

Question

write a program in C language using arrays for booking ticketsof bus (6 seats)
the program should be like this press 1 to show number of seats available. e.g 1,2,3,4,5,6 are available press the desired seat number to book it e.g if u want to book seat number 2 press 2. seat number 2 is booked the program should run untill all seats are filled, i.e when all seats are booked, it should display all seats are booked! plz help soon! write a program in C language using arrays for booking ticketsof bus (6 seats)
the program should be like this press 1 to show number of seats available. e.g 1,2,3,4,5,6 are available press the desired seat number to book it e.g if u want to book seat number 2 press 2. seat number 2 is booked the program should run untill all seats are filled, i.e when all seats are booked, it should display all seats are booked! plz help soon!

Explanation / Answer

please rate - thanks #include #include int main() {int i,seats[6]={0},choice,count=6; while(count>0) {do      {printf("press 1 to show number of seatsavailable ");      scanf("%d",&choice);      if(choice!=1)          printf("must enter1 to book a seat ");      }while (choice!=1); printf("available seats: "); for(i=0;i6||choice6||choice