Write a program to assign passaengers seats in an airplane

Assignment Help Computer Engineering
Reference no: EM132174813

Using python, write a program to assign passaengers seats in an airplane. Assume a small airplane with seat numbering 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

6 A B C D

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

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

6 A B C D

After displaying the seats available the program prompts for the seat desired the user types in a seat, and then the display of available seats is updated.

This countinues until all seats are filled or until the user signals that the program should end. If the user enter the seat number XX, the program should end. If the user types in a seat that is already assigned, the program should say that that seat is occupied and ask for another choice.

Reference no: EM132174813

Questions Cloud

Write a function revdict that takes a dictionary d : Write a function revdict that takes a dictionary D and returns a dictionary R that reverses D by mak- ing the keys into values and the values into keys.
Human flesh in mortuary feasts : In Papua New Guinea, the natives (the Fore) used to be cannibals and they consumed human flesh in mortuary feasts. Unfortunately for them
Why intervene in credit markets : Consider a project that needs a fixed investment I = $100 and yields a gross return y > I with certainty. A risk-neutral borrower wants to invest.
What would be the additional funds needed : What would be the additional funds needed? Do not round intermediate calculations.
Write a program to assign passaengers seats in an airplane : Write a program to assign passaengers seats in an airplane. Assume a small airplane with seat numbering as follows.
Complete the ratio analysis table in the peer group : Complete the Ratio Analysis table in the Peer Group section of the financial portion of the business plan - Ration Comparison listing each full years results
Central tendencies within culture are known : Central tendencies within a culture are known as. All of the following are examples that enhance virtual team work, EXCEPT.
How a stack-based calculator works : Perform the operation on the result of the last operation and the last entered integer. (i.e. pop the top two integers from the stack.)
Comment on what this exercise reveals : Consider the case of two borrowers who are equally productive. Borrower 1 is considered to be "rich" as she has cash equivalent to A = $50 in her pocket.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd