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

Hi sir please write this on c program and please do not use gloable variables an

ID: 3866351 • Letter: H

Question

Hi sir please write this on c program and please do not use gloable variables and data structures.

Don't try to compile your entire program in one "big bang". Compile it piece by piece. Test each piece that you have compiled to make sure it works correctly before you add the next piece. . Make sure your code follows "good software engineering principles" (e.g., good variable names, adequate comments, good visual layout to enhance readability, etc), as demonstrated in our previous sample codes in the class. . Online Check-in System The project is based on the design of an online check-in system for some Turkish airlines flights Online check-in is the process in which passengers confirm their presence on a flight via the Internet and reserve a seat. You will write a program that allows t check-in for a specific flight, cancel an online check-in or update the online check-in. Your program will also allow the administrator of the system to see the he user to make an online overall reserved seats. Assume that all the airplanes are Boeing 777 type. Boeing 777 has a typical seating capacity for 400 passengers. Below you can see the seating chart of the planes:

Explanation / Answer

void menu()

{

printf(" +++++++++++++++++++++++ "

" Welcome to online check-in system "

" ++++++++++++++++++++++++++ "

" 1.Make an online check-in "

" 2.Cancel an online check-in "

" 3.Update an online check-in "

" 4.Show reserved seat "

" 5.Quit ");

printf(" Enter your selection : ");

scanf("%d",&selection);

looping();

return;

}

void looping()

{   

switch(selection)

{

case 1:

reserve();

break;

case 2:

cancel();

break;

case 3:

update();

break;

case 4:

view();

break;

case 5:

quit();

break;

default:

printf(" Invalid selecion.Try again ");

}

return;

}

reserve()

{

printf(" Please enter 6 digit ticket number : ");

scanf("%d",&choice[i][j].seats);

fflush(stdin);

if(choice[i][j].seats<=seatsAvailable)

{

printf(" Please enter surname : ");

scanf("%[^ ]",choice[i][j].surname);

fflush(stdin);

}

void cancel(int ticketNumber)

{

choice[i][j].seats = 1 ;

}

void update()

{

char choice[10];

printf(" Please go through the policy and enter YES or NO : ");

cin>>choice;

if(choice=='YES')

{

reserve()

}

}

void view()   

{   

  

printf(" ==================================== ");

printf(" ALL SHOW RECORDS ");

printf(" ==================================== ");

printf(" Seats Available left : %d ",seatsAvailable);

  

system("pause");

system("cls");

menu();

  

return;

}

void quit()

{

printf(" Thank you for using this system ");

exit(1);

return;

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote