Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

In this assignment, you will be creating several Java classes to model a small plane flying passengers from State College, PA to Orlando, FL.

You must include:

  • An Aircraft class
  • A Pilot class
  • A Passenger class
  • A Stewardess class
  • A Suitcase class
  • An Address class
  • A Map class

You must model the following relationships:

  • Each Aircraft contains one Pilot, one Stewardess, and four Passengers
  • Each person (Pilot, Stewardess, or Passenger) has a Suitcase
  • Each person (Pilot, Stewardess, or Passenger) has an Address
  • Each Pilot has a Map

Other requirements:

  • Your main() method must instantiate and populate each of these classes
  • Your Aircraft class must have a getInfo() method that returns all of the information about the aircraft, each person on board, and all of their items/attributes.  You should call this method from your main() method.
  • Your program must use an ArrayList of passengers
  • Your program must save your passenger list to an XML file using the techniques discussed in class.
  • Each class must have at least 2 (properly encapsulated) attributes (in addition to the required class relationships above).  See suggestions below if you have difficulty choosing attributes.

Class attribute suggestions:

  • Aircraft: maxSpeed, maxPassengers, numEngines
  • Pilot: yearsExperience, age, vision
  • Passenger: frequentFlyerPoints, finalDestination, seatingSection
  • Stewardess: yearsExperience, isFullTime, hoursWorked
  • Suitcase: numPockets, maxWeight, hasCarryStrap
  • Map: size, country, region
  • Address: city, state, zip

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M92206273
  • Price:- $25

Priced at Now at $25, Verified Solution

Have any Question?


Related Questions in Computer Engineering

Cullumber inc has issued a three-year bond that pays a

Cullumber, Inc., has issued a three-year bond that pays a coupon rate of 7.3 percent. Coupon payments are made semiannually. Given the market rate of interest of 4.4 percent, what is the market value of the bond?  (Round ...

How can i get the first element from a linked listfor

How can I get the first element from a linked list? For example, if I am working on a number guessing game with linked list, and there is a list called priorGuess, which stores all the guesses that is given. PriorGuess h ...

Has globalizationnbspincreased or decreased social and

Has globalization increased or decreased social and economic disparities around the globe? Can you please provide details.

Subnetting ip adress - 190 3500750 subnetwhat is the

Subnetting : IP adress - 190. 35.0.0 750 subnet What is the subnet mask? How many bit? What is 2 n-2 host? What is 2 n subnets? What are the first 5 subnets? What is the first and last IP of 2nd block? Answer all the que ...

What is an example of a repetitive and specific task in

What is an example of a repetitive and specific task in which you use descriptive statistics on a daily basis. What is an example of how you consciously or subconsciously rely on the presence of descriptive statistics in ...

Lets do some r suppose you have the following situation you

Let's do some R.... Suppose you have the following situation: You have a large jar of beans, 43% black, 57% white. You take a sample of 14 beans. a) Use R to figure out the probability for every single possible outcome. ...

Your solution will entail writing a function called

Your solution will entail writing a function called TimeDifference and a test main that demonstrates that you can compute the time difference in minutes between the two times. TimeDifference is a function that receives a ...

Suppose you would like to sort n music files using a

Suppose you would like to sort n music files using a comparison-based sorting algorithm (i.e. no bucket sort), but you only have an old, unreliable computer, which you have nicknamed "Rustbucket". Every time Rustbucket c ...

Answer as thorough as possiblenbspinclude an explanation of

Answer as thorough as possible, Include an explanation of your recommendations or trading strategies. Should you early exercise the following American-style put option? If not always, under what situation would you early ...

Question you are responsible for purchasing equipment for a

Question : You are responsible for purchasing equipment for a small business that requires at least 6TB of reliable storage. Research and choose a SAN solution from a major vendor (Dell, HP, EMC, AMAZON etc.). List and d ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As