LAB 211 Assignment: Title Background
LAB 211 Assignment: Title Background
Code: J1.L.P0015
Title
Asset Management- Upgrade
Background
BMLT Company is a software company. HR in the company includes employees and a manager. In the company,
there are shared assets such as projectors, laptops, .... The manager has functions such as adding, deleting, editing,
finding assets. In addition, the manager also approves the requests to borrow assets of employees. As an
employee, it has the following functions: search and send requests to borrow as well as return assets.
You are required to develop a program to manage the assets of the BMLT company.
Asset management will include 2 programs: one for employees and other one for manager.
Asset information is stored in the asset.dat file
assetID name color price weight quantity
A001 Samsung projector White 500 3.2 10
A002 Macbook pro 2016 Sliver 1000 2.2 5
The employee.dat file has stored employee information including the manager.
employID name birthdate role sex password
E160001 Nguyen Hong Hiep 12/06/2000 EM male e10adc3949ba59abbe56e057f20f883e
E160240 Tran Dinh Khanh 15/07/2002 EM male e10adc3949ba59abbe56e057f20f883e
E140449 Le Buu Nhan 10/07/2002 EM male e10adc3949ba59abbe56e057f20f883e
E160798 Truong Le Minh 03/12/2002 EM male e10adc3949ba59abbe56e057f20f883e
E160052 Hoa Doan 05/06/1990 MA male e10adc3949ba59abbe56e057f20f883e
A. Employee's program
Program Specifications
Build a management program for employee. With the following basic functions
1. Login
2. Search asset by name
3. Borrow the assets
4. Cancel request
5. Return asset
Others- Quit
Each menu choice should invoke an appropriate function to perform the selected menu item. Your program must
display the menu after each task and wait for the user to select another option until the user chooses to quit the
program.
Features:
This system contains the following functions:
Display a menu and ask users to select an option.
– Function 0: Build the data structure - 50 LOC
o Classes, abstract classes, Interfaces.
o assetID, employeeID cannot change after created.
o Must implement the polymorphism properties of object-oriented programming.
– Function 1: Login - 0 LOC
– Function 2: Search asset by name – 0 LOC
– Function 3: Borrow the assets - 50 LOC
o Employee must login to use this function.
o Show list of asset (asset.dat file).
o Employee input the assetID and quantity to send request.
o Add the new data into request.dat file
o Ask to continuous or go back to the main menu.
– Function 4: Cancel request – 50 LOC
o Employee must login to use this function
o The system shows a list of assets requested of this employee (request.dat file)
o Employee select the request ID want to cancel.
o System must show the confirm message before cancel
o Delete the select request (request.dat file)
o Ask to continuous or go back to the main menu.
– Function 5: Return request – 50 LOC
o Employee must login to use this function
o The system shows a list of assets borrowed of this employee (borrow.dat file)
o Employee select the borrow ID want to return.
o System must show the confirm message before cancel
o Delete the selected borrow (borrow.dat file)
o Update quantity of the asset at stock (asset.dat file)
o Ask to continuous or go back to the main menu
The above specifications are only basic information; you must perform a requirements analysis step and
build the application according to real requirements.
The lecturer will explain the requirement only once on the first slot of the assignment.