question archive You have been asked to develop the new system ON C++

You have been asked to develop the new system ON C++

Subject:Computer SciencePrice: Bought3

You have been asked to develop the new system ON C++. You are to write application to assign seats in an airline. Assume a small airplane with 28 seats (7 rows 4 wide) 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 marking the seats already assigned. 

 

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

 

The program then requests a choice of seat. If the seat if available, then the seating display is updated. Otherwise, the program requests another choice of seat. 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.

 

This continues until all seats are filled or until the user says that the program should end.

 

You have been asked to develop the new system. You are to write application to assign seats in an airline. Assume a small airplane with 28 seats (7 rows 4 wide) 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 marking the seats already assigned. 

 

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

 

The program then requests a choice of seat. If the seat if available, then the seating display is updated. Otherwise, the program requests another choice of seat. 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.

 

This continues until all seats are filled or until the user says that the program should end.

 

SAMPLE OF OUTPUT :

ECC Airlines

Seat Reservation Program....

Reserved seats are marked 'X'. Others are available.

 

A B  C D

A B  C D

A B  C D

A B  C D

A B  C D

A B  C D

 

ECC Airlines

Seat Reservation Program.

Reserved seats are marked 'X'. Others are available.

Please enter your request in the form "3 C" for Row 3, Seat C

There are 7 rows. Seats are A, B, C, D: 3D

 

A B  C D

A B  C D

A B  C X

A B  C D

A B  C D

A B  C D

N or n quits, anyting else continues: y

 

ECC Airlines

Seat Reservation Program.

Reserved seats are marked 'X'. Others are available.

Please enter your requst in the form "3 C" for Row 3, Seat C

There are 7 rows. Seats are A, B, C, D: 3D

 

****That seat is taken****.

****No assignment made****.

****Please make another request****

 

A B  C D

A B  C D

A B  C X

A B  C D

A B  C D

A B  C D

N or n quits, anything else continues: n

 

Press any key to continue

 

REQUIREMENTS:

·        Use the "Steps for creating a program" template to develop your solution. When complete, save as a .txt, .doc or .rtf file and upload this with the other two required files.

·        Use meaningful variable names and reasonable data types.

·        Use the header format template. Include a comment section at the top of you file, with your name, the assignment number and a brief summary (in your own words) of what the program does.

·        Include comments to describe the major sections of the program       

·        Prompt for each input value you need and annotate the output to describe what it represents.

 

pur-new-sol

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE