Write a program that can be used to assign seats

Assignment Help Computer Engineering
Reference no: EM132211529

Question :

Write a program that can be used to assign seats for a commercial airplane. The airplane has 13 rows, with six seats in each row.

Rows 1 and 2 are first class, rows 3 through 7 are business class, and rows 8 rows through 13 are economy class. Your program must prompt the user to enter the following information:

a. Ticket type (first class, business class, or economy class)

b. Desired seat Output the seating plan in the following form: Here, * indicates that the seat is available; X indicates that the seat is occupied.

Make this a menu- driven program; show the user's choices and allow the user to make the appropriate choices.

Your program will show a before and after image of the above layout and will process no less than 25 customers with varying seating and ticket requests.

Reference no: EM132211529

Questions Cloud

What is your company goals and objective : Marketing Plan. What is your company’s goals and objective? What type of business are you?
Creation by integrating data held by other players : Could Netflix act as the catalyst for value creation by integrating data held by other players?
Consumer relations-public relations result of globalization : Discuss the changes in consumer relations and public relations as a result of globalization.
Evaluate an arithmetic expression : Write a program that uses stacks to evaluate an arithmetic expression.
Write a program that can be used to assign seats : Write a program that can be used to assign seats for a commercial airplane. The airplane has 13 rows, with six seats in each row.
Write a program that uses a structure to store data : It should let the user enter data into the array, change the contents of any element and display all the data stored in the array.
Create a character array of size 256 : Write a program that uses gets to read and print text. Create a character array of size 256.
Display a row of asterisks of length equal to the input : Write a program that takes an integer from standard input and then displays a row of asterisks of length equal to the input or equal to 20,whichever is smaller.
Display the characters for the ascii values 33 through 126 : Write a program that uses a "for" loop to display the characters for the ASCII values 33 through 126.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Implement a modified form of the linear search

Write a method that implements a modified form of the linear search on an integer array that doesn't return the position of a search value.

  Standardizing service nomenclature

Explain how should one go regarding standardizing service nomenclature, like the process service names and outcomes, in order to obtain a level of ease with implementing enterprise wide software?

  Determine the capacitance full-wave rectifier

Assume the input signal to a rectifier circuit has a peak value of Vm = 12 V and is at a frequency of 60 Hz. Assume the output load resistance is R = 2kΩ and the ripple voltage is to be limited to Vr= 0.4 V. Determine the capacitance required to y..

  Explain each of the strategies for the migration process

Migrating from IPv4 to IPv6 is known as the transition from version 4. Explain each of the strategies for this migration process using appropriate examples.

  Discuss changing management concern would impact the it

analyze whether or not changing your management concern would impact the IT that you chose

  Write simple paragraph or two describing procedures

You need to write simple paragraph or two describing procedures that can be used for System Hardening of both IIS and Apache.

  How does a dual-slope a-d converter work

What is Shannons sampling criterion? How does a successive approximation A/D convener work?

  What is the minimum required packet size for an ethernet

Using this formula, what is the minimum required packet size for an Ethernet that spans 3 kilometers? Assume the speed of propagation is 1.8 times 108 m/s.

  Improve understanding of propositional predicate logic

Improve your understanding of propositional and first-order predicate logic, including their use in mechanized reasoning.

  Describe how it applies to the realm of data communication

Write one to two paragraphs on each topic below, and describe how it applies to the realm of data communication. Also discuss what type of damage these computer infections can do to data in a computer.

  Pros and cons to approach the project as adaptive sdlc

ITC548 - System Analysis Assignment 3 - Requirements Report. Write brief description of the Pros and Cons to approaching the project using the 'Predictive' SDLC

  Demonstratethe client-server communication capturing to john

Demonstratethe client-server communication capturing to John (during any class before deadline). List your team members on your cover page.

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