Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

flight-schedule.txt 866,commercial,SAT,LAS,13:05,14:00 815,commercial,SAT,LAS,08:00,09:05 267,private,SAT,SLC,05:50,09:50 896,commercial,SAT,JFK,07:00,11:50 Reservation.txt: 815,Reyes,Hugo,22 815,Reyes,Carmen,23 815,Reyes,Diego,21 815,Reyes,David,20 896,Goodspeed,Horace,9 866,Littleton,Claire,2 866,Locke,John,101 866,Ford,James,4 267,Hume,Desmond,1 267,Pace,Charlie,3 815,Kwon,Jin-Soo,2 815,Shephard,Jack,132 896,Dawson,Michael,24 896,Burke,Juliet,35 815,Straume,Miles,47 267,Kwon,Sun-Hwa,6 267,Jarrah,Sayid,8 815,Linus,Benjamin,118 896,Linus,Roger,118

image text in transcribedimage text in transcribedimage text in transcribed

flight-schedule.txt

866,commercial,SAT,LAS,13:05,14:00 815,commercial,SAT,LAS,08:00,09:05 267,private,SAT,SLC,05:50,09:50 896,commercial,SAT,JFK,07:00,11:50 

Reservation.txt:

815,Reyes,Hugo,22 815,Reyes,Carmen,23 815,Reyes,Diego,21 815,Reyes,David,20 896,Goodspeed,Horace,9 866,Littleton,Claire,2 866,Locke,John,101 866,Ford,James,4 267,Hume,Desmond,1 267,Pace,Charlie,3 815,Kwon,Jin-Soo,2 815,Shephard,Jack,132 896,Dawson,Michael,24 896,Burke,Juliet,35 815,Straume,Miles,47 267,Kwon,Sun-Hwa,6 267,Jarrah,Sayid,8 815,Linus,Benjamin,118 896,Linus,Roger,118 866,Alpert,Richard,120 866,Rutherford,Shannon,15 896,Nadler,Rose,57 896,Carlyle,Boon,37 896,Nadler,Bernard,58 866,Rousseau,Alexandra,13 866,Friendly,Tom,6 866,Shephard,Christian,14 896,Hawking,Eloise,47 866,Widmore,Charles,103 866,Chang,Pierre,115 896,Reyes,Carmen,22 815,Smith,Elizabeth,67 866,Fernandez,Nikki,89 896,Pace,Liam,135 815,Widmore,Penelope,92 815,Rom,Ethan,99 866,Keamy,Martin,111 896,Chandler,Cindy,88 896,Arzt,Leslie,42 

Objectives: Polymorphism ArrayList Strings, Comparable UML diagrams Task: Create a basic flight reservation program The local airport would like to display flight information for all flights that occur each day. Flight information includes the data about each flight (its destination, origin, arrival time, etc) as well as the reservations made for that flight. They keep this information in two [very disorganized] text files-your program will sort out the data and display it to the user Getting Started Your application will consist of 5 Java classes: Lab3.java . Flight.java CommercialFlight.java PrivateFlight.java Reservation.java It will read in data from two text files: fight-schedule.txt and reservations.txt. You will place these files at the top of your project in Eclipse that is, not within the source folder or any other folder. If this is done correctly, within your code, you will need only refer to the file name, rather than giving a full path to the location of each file Lab3.java This class will run your program (Hint: it must have a main method). The main method will have an ArrayList of flight- it will populate the data for these flights and their reservations from the text file (see below for additional details). When run, your program will read in the data from the given text files, and print exactly as follows

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Application Development And Design

Authors: Michael V. Mannino

1st Edition

0072463678, 978-0072463675

More Books

Students also viewed these Databases questions