Question

The objective of this assignment is to become familiar with objects, and modeling with object types...

The objective of this assignment is to become familiar with objects, and modeling with object types (classes). You will not write any code for this assignment, rather you will analyze two applications to determine what object types and containers are needed (saying what the containers store, but no need for saying specific data structures), what fields are needed for each class, and what operations are needed in each class (no return types or parameters needed, but make operation names descriptive). No need to be too detailed.

1: Flight Reservation System Consider a flight reservation system that is to keep track of passengers and their flights. A passenger can have several flights booked at a time, and a flight will have several passengers. The booking of a flight by a passenger can include seat selection.

Homework Answers

Answer #1

Answer-

Coming to the Flight class, this should contain the flight operator, flight model, flight number, number of passengers, time of the journey etc in order to appropriately distinguish each flight.

For the passenger class, there would be the variables first name, last name, passport number, date and time of journey, source of journey, destination of journey, seat number, flight number , etc would be the main fields in order to differentiate a person.

Methods can be written(such as getters and setters): getters can be used to effectively retrieve the information of a particular booking id and setters can be used to place the particular variables in the objects of the particular class, where objects are person's details and the flight details. For booking a ticket, a setter method can be used to insert information for a particular object.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Delta airlines case study Global strategy. Describe the current global strategy and provide evidence about how...
Delta airlines case study Global strategy. Describe the current global strategy and provide evidence about how the firms resources incompetencies support the given pressures regarding costs and local responsiveness. Describe entry modes have they usually used, and whether they are appropriate for the given strategy. Any key issues in their global strategy? casestudy: Atlanta, June 17, 2014. Sea of Delta employees and their families swarmed between food trucks, amusement park booths, and entertainment venues that were scattered throughout what would...
What tools could AA leaders have used to increase their awareness of internal and external issues?...
What tools could AA leaders have used to increase their awareness of internal and external issues? ???ALASKA AIRLINES: NAVIGATING CHANGE In the autumn of 2007, Alaska Airlines executives adjourned at the end of a long and stressful day in the midst of a multi-day strategic planning session. Most headed outside to relax, unwind and enjoy a bonfire on the shore of Semiahmoo Spit, outside the meeting venue in Blaine, a seaport town in northwest Washington state. Meanwhile, several members of...
PRODUCTION PLANNING AT VIKTOR LENAC SHIPYARD Professor Giorgio Sinković and Professor David M. Currie prepared this...
PRODUCTION PLANNING AT VIKTOR LENAC SHIPYARD Professor Giorgio Sinković and Professor David M. Currie prepared this case solely to provide material for class discussion. The authors do not intend to illustrate either effective or ineffective handling of a managerial situation. The authors may have disguised certain names and other identifying information to protect confidentiality. This publication may not be transmitted, photocopied, digitized, or otherwise reproduced in any form or by any means without the permission of the copyright holder. Reproduction...
Using the model proposed by Lafley and Charan, analyze how Apigee was able to drive innovation....
Using the model proposed by Lafley and Charan, analyze how Apigee was able to drive innovation. case:    W17400 APIGEE: PEOPLE MANAGEMENT PRACTICES AND THE CHALLENGE OF GROWTH Ranjeet Nambudiri, S. Ramnarayan, and Catherine Xavier wrote this case solely to provide material for class discussion. The authors do not intend to illustrate either effective or ineffective handling of a managerial situation. The authors may have disguised certain names and other identifying information to protect confidentiality. This publication may not be...