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

Fresher Academy: Java Basics

The document describes a coding test to create a Java console application to manage departments and employees. It outlines business needs, technical requirements, stored data details, class relationships to implement, and user interface requirements. The application must allow adding, removing, and displaying departments and employees stored in files, assigning employees to departments, and have a main menu screen with selection options. It provides constraints, sample functions, and estimates 120 minutes to complete with marking criteria on object-oriented design, functional requirements, validation, and user interface.

Uploaded by

Nguyen Tran
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views

Fresher Academy: Java Basics

The document describes a coding test to create a Java console application to manage departments and employees. It outlines business needs, technical requirements, stored data details, class relationships to implement, and user interface requirements. The application must allow adding, removing, and displaying departments and employees stored in files, assigning employees to departments, and have a main menu screen with selection options. It provides constraints, sample functions, and estimates 120 minutes to complete with marking criteria on object-oriented design, functional requirements, validation, and user interface.

Uploaded by

Nguyen Tran
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

FRESHER

ACADEMY
JAVA BASICS

Nguyen Thi Dieu (FHO.WD)

0|Page
Contents
Business needs .........................................................................................................................................2
Working requirements .............................................................................................................................2
Technologies ............................................................................................................................................2
Technical Requirements ..........................................................................................................................2
Stored Data...............................................................................................................................................2
Business needs .........................................................................................................................................2

CodeCODE: Java.Test1.P001 FRESHER


Test topic : JavaBasic Test1 Practice
ACADEMY
Test duration : 120 minutes

Create a Java Console application bases on Java Classes/Objects, OOP, Exception Handing, IO, Java
Collection to complete below exercises.
Business needs
- Create a Java console program to manage a department with employee and contractor.
Working requirements Commented [DN1]:

- Working environment: Eclipse IDE, Java 7 or up.


- Delivery: Source code.
Technologies
The product illustrates:
- Object Oriented Programming paradigm: Encapsulation, Overload, Inheritance, Override,
Feature Hiding, Polymorphism, Abstract class, Interface.
- Threading, IO.
- Utility class: List, Set, Map.
Technical Requirements
- Use Object-Oriented programming style.
- Use Java classes and functions inside default JDK (no external libraries).
- Apply the default Java naming coding convention.
- Remember to comment each class, method, and attribute (if needed).
- The application should be on the Console .
- Use I/O Streams for working with files.
Stored Data
All data information will be saved to file (if needed). Commented [DN2]: file

1|Page
Descriptions
In the following class hierarchy, the trainee needs to create Java classes to implement entities and
their relationships:

The employee class contains the information about employees. Each employee has its ID, title, full
name, one of 7 working domains, one of 3 employee positions, monthly salary, and department id.
The department table contains the information about departments. Each department has an ID, a
name, and domain.
Data constraint
In the input data has followed constraints:
- ID is a string of 7 characters, started by “EM” for employee and “DE” for department,
followed by 5 digits. ID is unique.
- Title is one of “Mr”, “Mrs” or “Ms”.
- Three employee positions are CHE (Chef of department), CHA (Chef department assistance)
and MEM (member).
- Employee in a department has the same domain as department domain.
- A department has maximum 5 employees. Formatted: Font: Candara
Formatted: Normal, Indent: Left: 0.63 cm, No bullets or
a. The program must have a function to create and to delete a department and store it into a numbering
file named “department.dat”. The domain of a new department is selected when a new
department is creating. Each domain has only one department.
b. Display list of all department information, sorted by department ID
c. The programm must have a function to create a employee and store it into a file named
“employee.dat”.
d. Write The program has a function to add to a department one or more existed employee(s)
which currently does not participate to in a department. When adding, the assignment
function allows choosing a position for adding employee(s).
e. The program has a function to remove one or more employee(s) from a department, by
employee id.
f. Display list of all employees with its department ID
User Interface Requirement
The program has a screen console for UI
The main screen allows selecting the functions for:
1. Department management
o Add new department
o Remove department by ID
2. Employee management
o Add new employee to a department
2|Page
o Add one or more existed employee(s) to the department
o Display list of all employees with its department ID
3. Close program
Input/Output Data
- The input data should be in a text file.
- The output should be on the console.
Hints: Should override toString() methods to display objects.
Estimate time: 120 mins
Mark scale :
- OO design/Class design: 20 %; - Functional Requirement 4540%;
- Validate: 20%; - User Interface Requirement: 2015%

Coding convention: bonus 10 %;


---
The End!

3|Page

You might also like