Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ordan Flights (JF): i s a flight managing firm. They want to develop a system for flight management. You are currently working as the system

ordan Flights (JF): is a flight managing firm. They want to develop a system for flight management. You are currently working as the system architect at JF and you have been asked to manage this project. After many interviews and meetings with different employees and customers, you received the following description about the system:

Flights are objects that represent the trip from place to another place through airports. The most basic information about Airports are: (name, city, country, list of departing fights, list of arrival flights). Each flight has flight number, a duration, departing airport, arrival airport, list of passengers, pilot, aircraft.

Aircrafts have model, manufacturer and code but also they come in two types: Airliner and Cargo. Airliner is used to transport passengers and has number of passengers property while Cargo is used to transport goods and has load (in tons) property. All Aircrafts have functionality to calculate the fuel consumption based on its type.

Flights has two types also CargoFlights and PassengerFlights. CargoFlights add load of the flight in tons and the cost per ton. PassengerFlights add the list of passengers. All flights must have functionality to calculate the revenue of the flight based on the following table:

CargoFlights

Load(Tons)*CostPerTon

PassengerFlights

The summation of the ticket price of all passengers of the flight

Pilots and Passengers are persons, Persons have name, nationality and passport number. Each Passenger has the number of travelled KM and the ticket price. Pilots stores the flying hours and a list of spoken languages.

task 0

In each aircraft there is only one black box device to record the events of the flight. JF wants to keep a record of events by calling record method that takes a string value and save it in an array. Aircraft will create only one instance of this blackbox inside the program.

Note:

In the program we can say

Flight.AirCraft.record(Starting the engine);

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions