6. Show Flight Info Enter Airline Code: QA Enter Flight Number: 404 Flight: Q4404 Type: I Status: S First Class Seats: 16 Business Class Seats: 25 Economy Class Seats: 193 Departure day: M Departure time: 1450 Departure airport: BOS Departure gate: A11 Arrival day: T Arrival time: 1545 Arrival airport: DXB Arrival gate: $12 Press Enter to continue. 7. Show Departures Enter Airport Code: BOS Enter Day: M Current time is 1230. BOS Departures: Flight Code Status Time QA177 DA404 Press Enter to continue. A S 0625 1450 Destination Gate CDG A13 DXB A11 2. Clear Schedule Are you sure you want to clear the schedule and start over? (y/n) y Schedule cleared. Press Enter to continue.

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

 Flight schedule Java program for Netbeans IDE 19.

Bonus: In the absence of a direct flight, find a pair of connecting flights between two airports with an intermediate stop at another airport. Calculate layover time (the wait time between connecting flights.

6. Show Flight Info
Enter Airline Code: QA
Enter Flight Number: 484
Flight: Q4404
Type: I
status: S
First Class Seats: 16
Business Class Seats: 25
Economy Class Seats: 193
Departure day: M
Departure time: 1450
Departure airport: BOS
Departure gate: A11
Arrival day: T
Arrival time: 1545
Arrival airport: DXB
Arrival gate: $12
Press Enter to continue.
7. Show Departures
Enter Airport Code: BOS
Enter Day: M
Current time is 1230. BOS Departures:
Flight Code status Time Destination
QA177
0625
DA484
1450
A
S
Press Enter to continue.
Gate
CDG A13
DXB A11
2. Clear Schedule
Are you sure you want to clear the schedule and start over? (y/n) y
Schedule cleared. Press Enter to continue.
Transcribed Image Text:6. Show Flight Info Enter Airline Code: QA Enter Flight Number: 484 Flight: Q4404 Type: I status: S First Class Seats: 16 Business Class Seats: 25 Economy Class Seats: 193 Departure day: M Departure time: 1450 Departure airport: BOS Departure gate: A11 Arrival day: T Arrival time: 1545 Arrival airport: DXB Arrival gate: $12 Press Enter to continue. 7. Show Departures Enter Airport Code: BOS Enter Day: M Current time is 1230. BOS Departures: Flight Code status Time Destination QA177 0625 DA484 1450 A S Press Enter to continue. Gate CDG A13 DXB A11 2. Clear Schedule Are you sure you want to clear the schedule and start over? (y/n) y Schedule cleared. Press Enter to continue.
Welcome Screen
Welcome to the Flight Scheduler!
Please remember to always use U, M, T, W, R, F, S, for entering
the day of the week, and to always use military time
for entering the time.
Please make your choice
by entering the corresponding menu number:
1. Set Clock
2. Clear Schedule
3. Add Airline
4. Add Flight
5. Cancel Flight
6. Show Flight Info
7. Show Departures
8. Show Arrivals
9. Find Flights Between Two Airports
10. Exit
1. Set Clock
Enter U, M, T, W, R, F, or S for corresponding day of the week: M
Please enter time in military notation: 1230
Day set to M and time set to 1230
Press Enter to continue
3. Add Airline
Airline name: Qatar Airways
Airline code: QA
Delta Aircraft: Boeing 787 Dreamliner
Boeing first class seat capacity: 16
Boeing business class seat capacity: 25
Boeing economy class seat capacity: 193
Qatar Airways succesfully added. Press Enter to continue.
4. Add Flight
Airline code: DB
DB was not found. Try again? (y/n) y
Airline code: QA
Flight number: 484
Type (D for domestic or I for international): I
Departure airport code: BOS
Departure gate: A11
Departure day: M
Departure time: 1450
Arrival airport code: DXB
Arrival gate: $12
Arrival day: M
Arrival time: 1545
Flight QA484 scheduled succesfully.
Press Enter to continue.
Transcribed Image Text:Welcome Screen Welcome to the Flight Scheduler! Please remember to always use U, M, T, W, R, F, S, for entering the day of the week, and to always use military time for entering the time. Please make your choice by entering the corresponding menu number: 1. Set Clock 2. Clear Schedule 3. Add Airline 4. Add Flight 5. Cancel Flight 6. Show Flight Info 7. Show Departures 8. Show Arrivals 9. Find Flights Between Two Airports 10. Exit 1. Set Clock Enter U, M, T, W, R, F, or S for corresponding day of the week: M Please enter time in military notation: 1230 Day set to M and time set to 1230 Press Enter to continue 3. Add Airline Airline name: Qatar Airways Airline code: QA Delta Aircraft: Boeing 787 Dreamliner Boeing first class seat capacity: 16 Boeing business class seat capacity: 25 Boeing economy class seat capacity: 193 Qatar Airways succesfully added. Press Enter to continue. 4. Add Flight Airline code: DB DB was not found. Try again? (y/n) y Airline code: QA Flight number: 484 Type (D for domestic or I for international): I Departure airport code: BOS Departure gate: A11 Departure day: M Departure time: 1450 Arrival airport code: DXB Arrival gate: $12 Arrival day: M Arrival time: 1545 Flight QA484 scheduled succesfully. Press Enter to continue.
Expert Solution
steps

Step by step

Solved in 3 steps

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