Description
Develop a software using C for the case given below.Write a program to assign seats on each fligh of the airlines only place ( capacity : 20 seats ). Your program should display the following menu alternatives.
Please type 1 for business class
please type 2 for economy class
If person types 1, the program should assign a seat in business class ( seat 1 to 5). if the person types 2, then it should assign economy class ( seat 6 to 20). Your program then should bring a boarding pass indicating the persons' seat number and whether it is in the business or economy class of the place . use a single-scripted array to represent the seating chart of plane. Initialize all the elements of array to 0 to indicate that all seats are empty. As each seat is assigned, set the corresponding elements of array to 1 to indicate that seat is no longer available. program should never assign a seat which is already assigned. When the business class in full, your program should ask the person if it is acceptable to be placed in economy class ( and vice versa). if yes, then make the appropriate seat assignment. If no, then print the message " next flight leaves in 3 hours "
Basic Requirements :
assign a seat either in the business or economy class.
display a boarding pass
display seating chart with indication of assigned or not assigned.
validation - no seat that has been assigned can be re-assigned
re-assign seat if the class is full
You may design the system in any way you feel that meets systems requirements. you may include menus that you feel are relevant to navigate around the system. Eventually there should be an end to the system. Use quit to exit the system.
You may use structures, arrays, loops, and decision structures in your program. you may include any extra feature eg. sorting the boarding passes by name, which you may feel relevant and that adds value to the system
Hello there, I discovered your web site by the use of Google whilst searching for a related matter,
ReplyDeleteyour web site got here up, it looks good. I've bookmarked it in my google bookmarks.
Hi there, just turned into aware of your blog via Google, and found that it is really informative. I'm
going to be careful for brussels. I'll be grateful for those who proceed this in future. Lots of other people will likely be benefited from your writing. Cheers!
Stop by my page: graduate certificate online
My web site > what is a graduate certificate
Undeniably consider that which you stated.
ReplyDeleteYour favorite justification seemed to be at the web the easiest factor to keep in
mind of. I say to you, I definitely get annoyed whilst other people think
about worries that they just do not understand about. You controlled to hit the nail upon the highest and also outlined out the entire thing without having side effect , people could take a signal.
Will probably be again to get more. Thank you
Feel free to visit my blog post: bmi chart male