A C++ project must be developed for booking seats on flights at an airline company. Do the following: 1. Create a struct clled Booking that consists of a 3 digit flight number (e.g. 234), type of seat (E or B), the price of a seat in economic class and the number of seats booked. Declare an array to store at least 30 Booking structs. (4) 2. The user must be able to enter the information for a number of bookings from the keyboard. Ask whether a booking must be made (Y or N). If a booking must be made, a random 3 digit flight number must be generated. The user must be asked to enter the type of seat, the price per seat and the number of seats to book. Example of input: Make a booking (Y or N)? :Y Type of seat (E or B): e Price per seat: 1200 Number of seats: 2 Make another booking (Y or N)? :y Type of seat (E or B): b Price per seat: 3400 Number of seats: 2 Make another booking (Y or N)? :y Type of seat (E or B): e Price per seat: 140e Number of seats: 3 Make another booking (Y or N)? :y Type of seat (E or B): e Price per seat: 1300 Number of seats: 2 Make another booking (Y or N)? :y Type of seat (E or B): b Price per seat: 45e0 Number of seats: 2 Make another booking (Y or N)? :n (12)

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Question.pdf - Foxit Reader
O
File
Home
Comment
Fill & Sign
View
Form
Protect
Share
Connect
Help
Tell me what you want to do...
a Find
O SnapShot
6 Clipboard -
Ô Fit Page
T
D Fit Width
A Link
O File Attachment
T
100%
TI
Rotate Left
A Bookmark
e Image Annotation
Hand Select
Actual
D Fit Visible
Reflow
L- Rotate Right
Typewriter Highlight
Audio & Video
Size
Tools
View
Comment
Links
Insert
Convert
Word to PDF
W-
Start
Question.pdf
A C++ project must be developed for booking seats on flights at an airline company.
Do the following:
1.
Create a struct called Booking that consists of a 3 digit flight number (e.g. 234), type of seat (E or B), the price
of a seat in economic class and the number of seats booked.
Declare an array to store at least 30 Booking structs.
(4)
2. The user must be able to enter the information for a number of bookings from the keyboard. Ask whether a
booking must be made (Y or N). If a booking must be made, a random 3 digit flight number must be generated.
The user must be asked to enter the type of seat, the price per seat and the number of seats to book.
Example of input:
Make a booking (Y or N)? :Y
Type of seat (E or B): e
Price per seat: 1200
Number of seats: 2
Make another booking (Y or N)? :y
Type of seat (E or B): b
Price per seat: 3400
Number of seats: 2
Make another booking (Y or N)? :y
Type of seat (E or B): e
Price per seat: 1400
Number of seats: 3
Make another booking (Y or N)? :y
Type of seat (E or B): e
Price per seat: 1300
Number of seats: 2
Make another booking (Y or N)? :y
Type of seat (E or B): b
Price per seat: 4500
Number of seats: 2
Make another booking (Y or N)? :n
(12)
1/ 4
100%
19:21
O Type here to search
2020/10/13
响 C
Transcribed Image Text:Question.pdf - Foxit Reader O File Home Comment Fill & Sign View Form Protect Share Connect Help Tell me what you want to do... a Find O SnapShot 6 Clipboard - Ô Fit Page T D Fit Width A Link O File Attachment T 100% TI Rotate Left A Bookmark e Image Annotation Hand Select Actual D Fit Visible Reflow L- Rotate Right Typewriter Highlight Audio & Video Size Tools View Comment Links Insert Convert Word to PDF W- Start Question.pdf A C++ project must be developed for booking seats on flights at an airline company. Do the following: 1. Create a struct called Booking that consists of a 3 digit flight number (e.g. 234), type of seat (E or B), the price of a seat in economic class and the number of seats booked. Declare an array to store at least 30 Booking structs. (4) 2. The user must be able to enter the information for a number of bookings from the keyboard. Ask whether a booking must be made (Y or N). If a booking must be made, a random 3 digit flight number must be generated. The user must be asked to enter the type of seat, the price per seat and the number of seats to book. Example of input: Make a booking (Y or N)? :Y Type of seat (E or B): e Price per seat: 1200 Number of seats: 2 Make another booking (Y or N)? :y Type of seat (E or B): b Price per seat: 3400 Number of seats: 2 Make another booking (Y or N)? :y Type of seat (E or B): e Price per seat: 1400 Number of seats: 3 Make another booking (Y or N)? :y Type of seat (E or B): e Price per seat: 1300 Number of seats: 2 Make another booking (Y or N)? :y Type of seat (E or B): b Price per seat: 4500 Number of seats: 2 Make another booking (Y or N)? :n (12) 1/ 4 100% 19:21 O Type here to search 2020/10/13 响 C
Question.pdf - Foxit Reader
O
File
Home
Comment
Fill & Sign
View
Form
Protect
Share
Connect
Нер
Tell me what you want to do...
a Find
O SnapShot
6 Clipboard -
Ô Fit Page
T
D Fit Width
A Link
O File Attachment
T
66.67%
TI
Rotate Left
A Bookmark
Image Annotation
Hand Select
Actual
Reflow
Typewriter Highlight
D Fit Visible
Rotate Right
Audio & Video
Size
Tools
View
Comment
Links
Insert
Free PDF to Word PDF
Start
Question.pdf
Converter
4 Word
Make a booking (Y or N)? :y
Type of seat (E or B): B
Price per seat: 4315.90
Number of seats: 2
Make another booking (Y or N)? :Y
Type of seat (E or B): e
Price per seat: 1280.50
Number of seats: 3
Make another booking (Y or N)? :y
Type of seat (E or B): b
Price per seat: 4150.ee
Number of seats: 1
Make another booking (Y or N)? :y
Type of seat (E or B): E
Price per seat: 1520.50
Number of seats: 2
Make another booking (Y or N)? :y
Type of seat (E or B): b
Price per seat: 3900
Number of seats: 2
Make another booking (Y or N)? :y
Type of seat (E or B): b
Price per seat: 4800
Number of seats: 1
Make another booking (Y or N)? :y
Type of seat (E or B): E
Price per seat: 1280
Number of seats: 4
Make another booking (Y or N)? :n
List of Bookings
Flight number
1.
Price per ticket
4315.90
1280.50
Туре
в
Number of seats
127
180
E
3
4
113
B
4150.00
181
1520.50
134
B
39e0.e0
6
151
B
4800.00
117
E
1280.00
Income from bookings
Туре
B
Flight number
Amount (R.c)
8631.80
1
127
2
180
3841.50
113
B
4150.00
3041.00
7800.00
4800.00
4
181
E
134
B
151
B
7
117
5120.00
Total number of economic seats booked: 9
Income from economic seat bookings:
Total number of business seats booked: 6
Income from business seat bookings:
Total income :
R 12002.50
R 25381.80
R 37384.30
11 3/4
66.67%
19:22
O Type here to search
2020/10/13
Transcribed Image Text:Question.pdf - Foxit Reader O File Home Comment Fill & Sign View Form Protect Share Connect Нер Tell me what you want to do... a Find O SnapShot 6 Clipboard - Ô Fit Page T D Fit Width A Link O File Attachment T 66.67% TI Rotate Left A Bookmark Image Annotation Hand Select Actual Reflow Typewriter Highlight D Fit Visible Rotate Right Audio & Video Size Tools View Comment Links Insert Free PDF to Word PDF Start Question.pdf Converter 4 Word Make a booking (Y or N)? :y Type of seat (E or B): B Price per seat: 4315.90 Number of seats: 2 Make another booking (Y or N)? :Y Type of seat (E or B): e Price per seat: 1280.50 Number of seats: 3 Make another booking (Y or N)? :y Type of seat (E or B): b Price per seat: 4150.ee Number of seats: 1 Make another booking (Y or N)? :y Type of seat (E or B): E Price per seat: 1520.50 Number of seats: 2 Make another booking (Y or N)? :y Type of seat (E or B): b Price per seat: 3900 Number of seats: 2 Make another booking (Y or N)? :y Type of seat (E or B): b Price per seat: 4800 Number of seats: 1 Make another booking (Y or N)? :y Type of seat (E or B): E Price per seat: 1280 Number of seats: 4 Make another booking (Y or N)? :n List of Bookings Flight number 1. Price per ticket 4315.90 1280.50 Туре в Number of seats 127 180 E 3 4 113 B 4150.00 181 1520.50 134 B 39e0.e0 6 151 B 4800.00 117 E 1280.00 Income from bookings Туре B Flight number Amount (R.c) 8631.80 1 127 2 180 3841.50 113 B 4150.00 3041.00 7800.00 4800.00 4 181 E 134 B 151 B 7 117 5120.00 Total number of economic seats booked: 9 Income from economic seat bookings: Total number of business seats booked: 6 Income from business seat bookings: Total income : R 12002.50 R 25381.80 R 37384.30 11 3/4 66.67% 19:22 O Type here to search 2020/10/13
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY