Java_M_A402
Java_M_A402
T ra in in g As s ig nmen ts
Version 1.0
Effective Date
Hanoi, 04/2024
Training Assignment Java Issue/Revision: x/y
RECORD OF CHANGES
Contents
OOP and Java Collection ................................................................................................................4
Objectives: ...................................................................................................................................4
Assignment Specifications: ..........................................................................................................4
Business Rules: ...........................................................................................................................4
Functional Requirements: ............................................................................................................5
Guidelines:...................................................................................................................................5
Mark scale: ..................................................................................................................................5
CODE: Java.M.A402
TYPE: MEDIUM
LOC: 200
DURATION: 120 MINUTES
Assignment Specifications:
For the class hierarchy is as follows, the trainee let's create the java classes install this class diagram to be
able to relationship between it.
» The Benefit is an abstract superclass and has four fields: name, thumbnailUrl, startDate, endDate.
Provide input() method to input data from keyboard.
» The Voucher is a concrete subclass of Benefit and adds two new fields: displayFormat, code.
» The TelephoneConsultant also is a concrete subclass of Benefit and adds one new field: duration.
Business Rules:
» startDate and endDate: correct date format (dd/MM/yyyy).
Functional Requirements:
Create a classed BenefitManage that manage a List<Benefit> and allow selecting the functions as follows:
a. Input data from the keyboard: create a Benefit of all types as mentioned above and input it into
List.
b. Update Voucher: update voucher info by entering code.
c. Remove expired Benefit: remove all benefits that is expired. (benefit is expired when endDate is
not null and endDate =< current date)
d. Telephone Consultant Report: display all available Telephone Consultant with duration > 10
minutes. (A telephone consultant is available when endDate is null or endDate > current date)
Screen Requirements:
Guidelines:
Create a project named java_medium_assignment402:
» Package fa.training.main contains class: Application that contains main() method to run program.
Mark scale:
--THE END--