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

  Write a program that will continuously prompt the user grade

Write a program that will continuously prompt the user for a grade (in the range of 0 to 100) until a sentinel value of 999 is entered. The program will then display the average of all grades entered, formatted to 1 decimal place. Assume the grades a..

  Assignment on ethical issues in information systems

Question 1:Summarize the issue that you have chosen. Question 2: Express your own opinion of, or position on, the issue that you have chosen. Question 3: Identify two to three (2-3) human and technological protective measures that you would use as ..

  Range of radio frequencies in wireless technologies

What is the range of radio frequencies in wireless technologies? What are the pros and cons of the lowest and highest frequencies? What types of devices are used and/or supported by each frequency?

  Tools or tactics for risks for computing infrastructure

As part of project to assess security risks for computing infrastructure, you have found that other managers often have different idea. List any tools or tactics that could be used.

  Influence culture and worldviews

Religious practices often influence culture and worldviews. How does religion inform personal culture? What role do personal religious views play in communication?

  Decision tables and dependency diagrams

Decision Tables and Dependency Diagrams

  What is the number of juggling patterns of length

a. What is the number of juggling patterns of length 2 using at most 3 balls? b. Write the stack numbers for the patterns of part (a). c Write the tables for these juggling patterns.

  Object-oriented programming project

In this class, we have spent much time emphasizing object oriented code development that encourages code re-use by means of interfaces, abstract classes, design patterns, etc. Now it is your turn to apply these concepts into the development of a f..

  Design a class named queue for storing integers

The method dequeue() that removes and returns the element from the queue. ¦ The method empty() that returns true if the queue is empty. ¦ The method getSize() that returns the size of the queue.

  Identity and access management

Analyze the identity and access management approach that organizations need to implement to effectively control access to their systems. Explain how the identity and access management approach would be influenced by the type of organization and it..

  Analysing ever larger amounts of data

Virtualisation is becoming increasingly important as organisations are analysing ever larger amounts of data, and more employees wish to access their work files through cloud storage.

  Give reasons why this is good for users

Explain why this is bad for users. Now give reasons why this is good for users.

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