Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Option 1 (Display Seat Chart): The program calls a function that displays the seat chart from the array seatChart using the format shown in page 1.

Option 2 (Reserve Seat): The program calls a function that prompts users for the seat desired as a string (e.g., 3A, 7D, etc.) and then determines the row number and column number of the array element that needs to be accessed. If the seat is available, it reserves it by assigning 'X' to the seat and displays a message stating that the seat was reserved. Otherwise it displays a message stating that the seat is not available.

Option 3 (Cancel Reservation): The program calls a function that prompts users for the seat to be canceled as a string (e.g., 3A, 7D, etc.) and then determines the row number and column number of the array element that needs to be accessed. If the seat is available, the program displays an error message stating that the seat to be canceled has not been initially reserved. Otherwise it makes the seat available and displays a message stating that the seat reservation has been cancelled.

PLEASE USE C++ LANGUAGE!

create each option as a sperate function and call them in a switch statement in the main

- the file being used is name chartIn.txt and the information stored in it is:

1         A X C D

2         A B C D

3         A B C D

4         A B C D

5         A X C D

6         A B C D

7         A B C D

8         A B C D

9         A B X D

10     A X X D

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M93074756

Have any Question?


Related Questions in Computer Engineering

Question high-performing teambullimagine that you are an

Question: "High-Performing Team" • Imagine that you are an agile coach. Outline a plan that sets the expectations for your team when beginning a project. Provide a rationale for your response. • Read the mini-case titled ...

Assignment week 2 documenting the project

Assignment: Week 2 Documenting the Project Lifecycle Well-written project documentation clarifies intent, documents decisions and results, and allows project managers to assess project progress (and report it, as necessa ...

Simulate a dispatcher using a priority queue system in

Simulate a dispatcher using a priority queue system in Java. New processes are to be entered using a GUI with priority included (numbering should be automatic). Processes are also to be terminated by GUI command. Context ...

The switch statementhere is the question in its entirety

The switch statement Here is the question in its entirety, but the actual problem is at the end. I just felt that I would give an overview of what I am asking. The program has to be in c++ (.cpp) and must compile as such ...

Kirk inc has come out with a new and improved product and

Kirk Inc. has come out with a new and improved product, and is expected to have an ROE of 14.4%. It will maintain a plowback ratio of 30%. Investors expect a 6.3% rate of return on the stock. (a) At what P/E ratio would ...

Question part 2 1using the major business performance

Question: Part 2: 1. Using the major business performance management (BPM) processes, describe the general process of how the case study organization will collect data that are relevant to the following: • Strategize • P ...

Please discuss the design principles that guide the authors

Please discuss the design principles that guide the authors of instruction sets in making the right balance. Provide examples of application of each of the three design principles while designing instruction sets.

Construct a frequency distribution for the number of

Construct a frequency distribution for the number of different residences occu-pied by graduating seniors during their college career, namely 1, 4, 2, 3, 3, 1, 6, 7, 4, 3, 3, 9, 2, 4, 2, 2, 3, 2, 3, 4, 4, 2, 3, 3, 5

At a college 66 of courses have final exams and 56nbsp of

At a college, 66 % of courses have final exams and 56 % of courses require research papers. Suppose that 45 % of courses have a research paper and a final exam.  Find the probability that a course has NONE of these two r ...

Discuss the impact of the market on well-diversified

Discuss the impact of the market on well-diversified portfolios. What does this suggest about the performance of mutual funds? Include real-world examples in your explanation.

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As