hiii i got this program and i like u guys to help me ok :
this is it :
write a c program using arrays,functions and switch case with menu to do the following :a small air lines has just purchased a computer for its new automated reservation and u have to do a program to assign seats on each flight of the airlines only plane ( capacity 10 seats ). ur program should display the following menu of alternatives: reservation system
1_ smoking seats
2_ non smoking seats
3_ exit
if the person types 1,then your program should assign a seat in the smoking section (seats from 1 to 5) if the person press 2 then your program should assign a seat in the non smoking section (seats from 6 to 10 ). your program should then print a boarding pass indicating the persons seat numbers and whether it is in the smoking or non smoking section of the plane .
use asingle subscripted array to represent th seating chart of the plane . initialize all the elements of the array to zero. to indicate thats all seats r empty . as each seats is assigned , set the coresponding elements of the array to 1 to indicate that the seats is no longer available.
ur program should ask the person if it is acceptable to be placed in the non smaking section when the smoking section is full ( and vice vrsa). if yes then make the appropriate seat assigment . if no , then print the message "next flight leaves in 3 hours"
آسف اذا تقلت عليكم بس اريد البرنامج قبل 2112000 ارجووووكم