Model a small plane flying passengers

Assignment Help Business Economics
Reference no: EM131399496

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

Reference no: EM131399496

Questions Cloud

Entity class and an entity instance : Describe and explain, the difference between an entity class and an entity instance. Please also give two clear examples.Two pages in APA format.
Would given value to be an outlier : One of the authors of this book (one male, one female) has a right handspan measurement of 23.5 cm. Would you consider this value to be an outlier? What additional information do you need to make a decision?
What you think the culture was like before john changed : Describe what you think the culture was like before and after John changed his management style. Provide examples and be detailed.
Prototype can be used in database development : Define and discuss in detail  what is a prototype in the context of software development.List as many as points as possible .Also Describe how a prototype can be used in database development.
Model a small plane flying passengers : In this assignment, you will be creating several Java classes to model a small plane flying passengers from State College, PA to Orlando, FL.
Explain how steroids differ from the human growth hormone : To learn about third person, see the link on the topic under this week's suggested reading. Your paper must: Define ergogenic aid and explain how steroids are considered part of your definition. Discuss the affects of steroid use on athletic performa..
What is a possible reason for given outlier : In the five number summary for men, the minimum height was 17 inches, an obvious outlier. What is a possible reason for this outlier, and what should the instructor do about it?
Discuss the difference between legitimate and referent power : Discuss the differences between legitimate, reward, coercive, and referent power. Give an example of each or the appropriate uses of these expert powers
Find the mean and standard deviation for each set of values : Find the mean and standard deviation for each set of values:- 18, 19, 20, 21, 22 -  20, 20, 20, 20, 20 - 1, 5, 7, 8, 79.

Reviews

Write a Review

Business Economics Questions & Answers

  The growth rate of the money supply increases

Using the AD-AS graph, show and explain how real GDP growth and inflation would change in both the short run and long run if the growth rate of the money supply increases.

  Elucidate how does knowledge of price elasticity

Elucidate how does knowledge of price elasticity among different groups of clients or for various products enable managers to price discriminate or change different prices for these groups.

  Current monetary policy expansionary or contractionary

Is the current Monetary Policy expansionary or contractionary? Why? What effect doe the Federal Reserve expect this policy to have on the US economy?

  What is the maximum increase in the money supply

Suppose that you deposit $15,000 into your checking account deposit at Bank Y. Assume that the required reserve ratio is 25 percent. what is the maximum increase in checking account deposits that can result from your $15,000 deposit? What is the maxi..

  Why has the application of the world bank standard structure

Why has the application of the World Bank's standard Structural Adjustment Policies been counter-productive in many developing countries?

  Discuss how you believe consumer equilibrium

Write a paragraph should contemplate and discuss how you believe consumer equilibrium (& utility) may be related to the concept of elasticity. In other words, do you think that the elasticity of demand impacts the utility we get from consuming an ite..

  Treasury bond futures contract

Suppose that you purchase a Treasury bond futures contract at $95 per $100 of face value. (LG 23-2) What is your obligation when you purchase this futures contract? If an FI purchases this contract, in what kind of hedge is it engaged? Assume that th..

  Two different times of day using supply and demand curves

At an urban college where most students commute to classes, there are 8,000 parking spaces for students. All students pay $150 a semester for a pass that allows them to park in any one of those 8,000 spaces. Illustrate the parking situation for these..

  Technology increases then in the long run

Other things the same, if technology increases, then in the long run

  The diploma to be an effective signal of worker ability

Suppose there are two types of persons: high-ability and low-ability. The schooling required to obtain a particular diploma costs a high-ability person $8,000 per year, and it costs a low-ability person $10,001 per year. What range of years of educat..

  The inflation-reduction episode

The inflation-reduction episode of the early 1980s was an example of an

  What amount must be deposited into a savings account

What amount must be deposited into a savings account that pays 8% market interest if the inflation rate is 10% and you want to set aside enough money to purchase a red tape cutting machine ten years after the deposit? The current cost of a red tape c..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd