0% found this document useful (0 votes)
2 views

Java.M.A301 (Advanced OOP)

The document outlines a training assignment for Java focusing on advanced object-oriented programming concepts such as classes, inheritance, and polymorphism. It includes specifications for creating a class hierarchy with abstract and concrete classes, as well as business rules and problem descriptions for managing student and teacher data. The guidelines detail the project structure and required packages for implementation.

Uploaded by

Long Đoàn
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Java.M.A301 (Advanced OOP)

The document outlines a training assignment for Java focusing on advanced object-oriented programming concepts such as classes, inheritance, and polymorphism. It includes specifications for creating a class hierarchy with abstract and concrete classes, as well as business rules and problem descriptions for managing student and teacher data. The guidelines detail the project structure and required packages for implementation.

Uploaded by

Long Đoàn
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Java Basics

T ra in in g As s ig nmen ts

Document Code 25e-BM/HR/HDCV/FSOFT

Version 1.1

Effective Date 20/11/2012

Hanoi, 06/2019
Training Assignment Java Issue/Revision: x/y

RECORD OF CHANGES

No Effective Date Change Description Reason Reviewer Approver

1. 01/Oct/2018 Create new Draft DieuNT1 VinhNV

2. 01/Jun/2019 Fsoft template Update DieuNT1 VinhNV

25e-BM/HR/HDCV/FSOFT v1.1 Internal use 2/5


Training Assignment Java Issue/Revision: x/y

Contents
Advance OOP .................................................................................................................................4
Objectives: ...................................................................................................................................4
Assignment Specifications: ..........................................................................................................4
Business Rules: ...........................................................................................................................4
Problem Descriptions: ..................................................................................................................5
Guidelines:...................................................................................................................................5

25e-BM/HR/HDCV/FSOFT v1.1 Internal use 3/5


Training Assignment Java Issue/Revision: x/y

CODE: JAVA.M.A301
TYPE: MEDIUM
LOC: 200
DURATION: 120 MINUTES

Advance OOP
Objectives:
» Understand and practise with Classes, Objects, Inheritance, Encapsulation.
» Understand and practise with Polymorphism, Abstraction.

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 Person is an abstract superclass and has four fields: fullName, gender, phone, email.

» The Student is a concrete subclass of Person and adds 3 new fields: studentId, theory, practice.
Provide calculateFinalMark() method to calculate the final mark of a student by an average of theory
and practice.
» The Teacher also is a concrete subclass of Person and adds two new fields: basicSalary, subsidy.
Provide method calculateSalary() to calculate the teacher’s salary by recipe:
Salary = Basic salary + Subsidy.

Business Rules:
» birthDate: correct date format (dd/MM/yyyy).

» email: correct email format.

25e-BM/HR/HDCV/FSOFT v1.1 Internal use 4/5


Training Assignment Java Issue/Revision: x/y

» theory, pactice: in the range from 0 to 10.

Problem Descriptions:
Create a class named PersonManage that contains the main method will be using the Person class
and its subclasses allow selecting the functions as follows:
a. Input data from the keyboard: create an array of 10 Person of all types as mentioned above.
b. Update student: update student info by entering studentId.
c. Display teacher: displays information about teachers, who has a salary higher than 1000$.
d. Report: display all students and their final mark, who qualify to pass the course (final mark >= 6).

Guidelines:
Create a project named Java.M.A301:
o Package fa.training.entities that contains Person, Student and Teacher class.
o Package fa.training.utils that contains Validator class for validation.
o Create a new package named fa.training.main contains PersonManage class.

--THE END--

25e-BM/HR/HDCV/FSOFT v1.1 Internal use 5/5

You might also like