JPL.L.A201 (Java IO)
JPL.L.A201 (Java IO)
T ra in in g As s ig nmen ts
Version 1.1
Hanoi, 06/2019
Training Assignments Java Programming Language Issue/Revision: 1/2
RECORD OF CHANGES
Contents
Long Assignment 2 – Option 1: Java I/O Fudamentals ....................................................................4
Objectives: ...................................................................................................................................4
Working requirements: .................................................................................................................4
Assignment Specifications: ..........................................................................................................4
Business Rules: ...........................................................................................................................4
Functional Requirements: ............................................................................................................5
User Interface Requirements: ......................................................................................................5
CODE: JPL.L.L201
TYPE: LONG
LOC: N/A
DURATION: 180 MINUTES
» The fixedwings class contains the information about fixed wing airplanes. Each fixed wing airplane
has its ID, model, plane type, cruise speed, empty weight, max takeoff weight, min needed
runway size and fly method (“fixed wing”)
» The helicopters class contains the information about helicopters. Each helicopter has its, ID model,
cruise speed, empty weight, max takeoff weight, range and fly method (“rotated wing”)
» The airports class contains the information about 4 airports. Each airport has an ID, a name, runway
size, max fixed wing parking place, list of fixed wing airplane ID, max rotated wing parking
place, list of helicopter ID.
Business Rules:
» ID is a string of 7 characters, started by “FW” for fixed wing airplane, “RW” for helicopter and “AP” for
airport, followed by 5 digits. ID is unique.
» The model size is maximum 40 characters.
» Three fixed wing airplane type are CAG (Cargo), LGR (Long range) and PRV (Private).
» If a fixed wing airplane is parked in an airport, its min runway size does not excess the airport runway
size.
» The max takeoff weight of helicopter does not excess 1.5 times of its empty weight.
Functional Requirements:
a. The program has the function to create a new airport. The name, runway size and capacity of the new
airport are selected when a new airport is creating.
b. The program has the function to add to an airport one or more fixed wing airplane(s) which currently
does not participate to an airport and which has the min needed runway size shorter than the airport
runway size.
c. The program has the function to remove one or more helicopter(s) from an airport.
d. The program has the function to add to an airport one or more helicopter(s) which currently does not
participate to an airport.
e. The program has the function to remove one or more helicopter(s) from an airport having.
f. The program has the function to change plane type and min needed runway size of fixed wing airplane.
Storage Data:
» The user inputs data from the keyboard.
» Data is stored in the a text file.
» Output data is displayed on the console.
User Interface Requirements:
Create a new class named AirplaneManagement that contains a main() method to display user interface.
The main screen allows selecting the functions for:
-- THE END --