Irenecereno, computer programming, Programming Languages

Using the concept of structures, write a program to assign passenger seats in an airplane. Assume a small airplane with seats numbered as follows:

1 A B C D
2 A B C D
3 A B C D
4 A B C D
5 A B C D

The program should display the seat pattern, marking with an ''X'' the seats already assigned. For example, after seats 1A, 2B, and 4C are taken, the display should look like:

1 X B C D
2 A X C D
3 A B C D
4 A B X D
5 A B C D
Seats are assigned by specifying a number and a letter. If the user types in a seat that is already assigned, the program should say that the seat is occupied and ask for another choice.The program should run until all seats are filled, or the user signals that the program should end.
Posted Date: 2/20/2012 6:11:11 AM | Location : United States







Related Discussions:- Irenecereno, computer programming, Assignment Help, Ask Question on Irenecereno, computer programming, Get Answer, Expert's Help, Irenecereno, computer programming Discussions

Write discussion on Irenecereno, computer programming
Your posts are moderated
Related Questions
Develop a Windows Forms Application by creating a new project named "xxxxxxxx" in a new folder named "xxxxxxxxas3" where xxxxxxxx is your student id. You should delete file(s) with

A hardware store sells the following hardware tools: screwdriver, wrench, and tape measure. You are asked to calculate the profit for the store based on the number of tools sold an

1 Triple Eigenvalue with 2 Linearly Independent Eigenvectors       In this case we will have the eigen-value l with the two linearly independent eigenvectors  ?h 1 and  ?h 2

This is what I have so far def root_brent(f, a, b, errorlimit = tinyerror, n = -1, r_i = 0): # f(a) and f(b) must have opposite signs poly = remove_multiple_roots(poly) counter

Expertsmind.com is expert in java assignment help JAVA Virtual Machine A Java exclusive device or java virtual machine (JVM) is an exclusive device able of undertaking Jav


Please write a program declaring a variable x as the type int, and use the scanf function to input an integer to initialize the value of x. Then, your program will print the follow

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

Program for Operate the Rolodex Rolodex is a rotating file, usually used to record business contact information. Cards are inserted in alphabetic order by name. You operate th

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4