Small plane flying passengers

Assignment Help Basic Computer Science
Reference no: EM131396458

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: EM131396458

Questions Cloud

Does the distribution appear to be symmetric : Make a histogram of the percentages from Problem 1. Does the distribution appear to be symmetric? Approximately what percentage of the cholesterol levels lie below 240 mg/100 mL?
Discuss about the drug and alcohol treatment program : Select three agency types from the following list: A drug and alcohol treatment program, A homeless shelter. A day treatment drop-in center for teenagers, A hospital rehabilitation center, A physical rehabilitation center, A crisis intervention cente..
Prototype in the context of software 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.
Do you believe the cell phone incident is a big deal why : Do you believe the cell phone incident is a big deal? Why or why not? Why is Roc Yang experiencing such a dilemma regarding the cell phone incident? What are the root causes for his dilemma?
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.
What would albert bandura recommend to mr griesman : What would Albert Bandura recommend to Mr. Griesman as a way to teach Nina how to tie her shoes? Why would Bandura recommend these things OR how do they fit within his theory? Please write a paragraph answer
Make a relative frequency : Make a stem and leaf graph of the first five rows of the blood cholesterol data in Table (50 observations). Do you see an excess of 0's or 5's?
Computes the cost of painting and installing carpet : Prompts the user to enter the widths and heights, in feet, of the door, each window, and the bookshelf. Read these quantities.
Examine the effect of automation on creating a process : Now that you assessed the business, identified some of the inefficient HR related processes plaguing Gladwell Grocery Stores, and pinpointed a few possible solutions, it is time to choose an HRIS application that will suit the business. In this as..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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