Assume that a simple program is utilized for air flight ticket reservation system. Write a program with comments, to assign seats on each flight based on the capacity of 10 seats. Some of the requirements/specifications are: Ki) The user will be able to choose 1 for "First Class" and 2 for "Economy Class". (i1) First Class section: Seats 1-5, Economy Class section: Seats 6-10 (111) Utilize 1D array to represent the seating chart of the plane. (IV) Initialize all the elements of the array to false to mdicate that all seats are empty Once each seat is assigned, set the corresponding elements of the anay to true, to indicate that the seat is unavailable Assigned seat shall not be released again (v) In case the First Class section is full, ask the user if it is acceptable to be placed in the Economy Class section (vice versa). If yes, proceed with the reservation If no, display a message "Please make a reservation for the next available day". (vi) Show the program output where in one of the trials, you shall enter vour name followng your student card. All possible program output shall be ncluded e g reservation full First Class, Economy Class, etc. The details to be displayed shall include at least name seat number, and section.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter10: Pointers
Section10.3: Pointer Arithmetic
Problem 4E
icon
Related questions
Question
100%
Good day everyone, I need help for this C++ programming question.
Question 2
Assume that a simple program is utilized for air flight ticket reservation system Write a program with
comments, to assign seats on each flight based on the capacity of 10 seats.
Some of the requirements/specifications are:
(1)
The user will be able to choose 1 for "First Class" and 2 for "Economy Class"
(ii)
First Class section: Seats 1-5, Economy Class section: Seats 6-10.
(111)
Utilize 1D array to represent the seating chart of the plane.
(IV)
Initialize all the elements of the array to false to indicate that all seats are empty
(v)
Once each seat is assigned, set the corresponding elements of the array to true, to indicate that
the seat is unavailable Assigned seat shall not be released again.
In case the First Class section is full, ask the user if it is acceptable to be placed in the Economy
Class section (vice versa). If yes, proceed with the reservation. If no display a message
"Please make a reservation for the next available day.
(vi)
Show the program output where in one of the trials, you shall emter vour name followmg your student
card All possible program output shall be included e g reservation full First Class. Economy Class,
etc. The details to be displayed shall include at least name seat mumber, and section.
Transcribed Image Text:Question 2 Assume that a simple program is utilized for air flight ticket reservation system Write a program with comments, to assign seats on each flight based on the capacity of 10 seats. Some of the requirements/specifications are: (1) The user will be able to choose 1 for "First Class" and 2 for "Economy Class" (ii) First Class section: Seats 1-5, Economy Class section: Seats 6-10. (111) Utilize 1D array to represent the seating chart of the plane. (IV) Initialize all the elements of the array to false to indicate that all seats are empty (v) Once each seat is assigned, set the corresponding elements of the array to true, to indicate that the seat is unavailable Assigned seat shall not be released again. In case the First Class section is full, ask the user if it is acceptable to be placed in the Economy Class section (vice versa). If yes, proceed with the reservation. If no display a message "Please make a reservation for the next available day. (vi) Show the program output where in one of the trials, you shall emter vour name followmg your student card All possible program output shall be included e g reservation full First Class. Economy Class, etc. The details to be displayed shall include at least name seat mumber, and section.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
ADT and Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning