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

  How does a b-tree differ from a b+-tree

How does a B-tree differ from a B+-tree?

  How would the physical security aspect of protecting compute

How would the physical security aspect of protecting computer assets relate in this case? Make sure to give some examples.

  Why is it considered a stronger form of 3nf

Why is it considered a stronger form of 3NF?

  Baldrige principles evident in workplace

How are the Baldrige Principles evident in your workplace, school or other organization? Which ones are most prominent? Are there any that are missing?

  Write a complete java program called parser

Write a complete Java program called Parser that gets a comma-delimited String of integers (eg "4,8,16,32,...") from the user at the command line and then converts the String to an ArrayList of Integers (using the wrapper class) with each element con..

  Development approaches of firm with relevant examples

Discuss technology generation vs technology development approaches of a firm with relevant examples?

  What is a system computational structure

Explain the block diagram and signal flow graph representations of a system structure and difference between these two representations.

  What is the interpretation of components of the cluster mean

What is the interpretation of components of the cluster mean? Which components most accurately characterize the objects in the cluster?

  The tif program case study illustrates

The case outlines for various implementations or rollouts that a number of committees, boards or groups were structured for the program. Why do you think that there were different types of groups formed? What role would they have played and what s..

  Calculate the profit made on works of art

Calculate the profit made on works of art that have been sold (i.e., the profit/loss on an  individual work of art is the difference between the acquisition price and the sales price).

  Indexing for different query types

This group assignment provides an opportunity to gain some practical experience with indexing. The "experiment of the week" assignments are intended to be more open, with your group picking the specific topics to investigate. Basically, this gives..

  Give the sizes and offsets of the sequence of fragments

Give the sizes and offsets of the sequence of fragments delivered to the network layer at the destination host.

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