Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

Views: 3042


Replies to This Discussion

cs506 assignment 3 solution 2021


If employee credentials (i.e. employee id and password) are correct, then ESS dashboard page will open (i.e. which will show the following features to the employee in dashboard (see Fig 2).
1. View Salary
2. Withdraw Salary
3. Logout System
1. View Salary:
When employee click on View button on ESS Dashboard it will show following features by fetching updated data from the database (using as shown in Fig 3.

1. Employee details
● Employee ID = your own VU Student ID (e.g. BC123456789)
● Name = your name as given on VULMS
● Salary per Month = 30000
● Current salary balance = Total salary – Sum of salary withdrawn yet
E.g. Total salary is 30,000 and employee performed three withdrawals then current balance will be as given: Current balance = 30000 – (1000+1000+1000) = 27000
2. Employee current Salary Balance
3. Withdraw salary message
4. Two buttons with labels “YES” or “NO”.

2. Withdraw Salary:
When employee click on Withdraw button on ESS dashboard then application will show withdraw features (using as shown in Fig 4.

Employee can withdraw salary which is multiple of Rs. 1000/- and maximum of Rs. 30000/- .Hint is given below:
if (salary % 1000 == 0) {
// it is a multiple of 1000.

If salary Current Balance is zero and Amount of Withdraw entered is grater then current balance, then following message should display as shown in Fig 4.1.[

Otherwise amount of Withdrawal is deducted from salary Current Balance and update database after each withdrawal and successful salary withdrawal message should appear as given in the Fig 4.2.
3. Logout:
When employee click on Logout button on ESS Dashboard then application will show “Thank You” message (using as shown in Fig 5.
On clicking “YES” button on different screenshots salary withdraw page will get open (see Fig 4). While on clicking “No” button ESS Dashboard will get open (see Fig 2).

cs506 assignment no 3 solution 2020

Required Stuff:
HTML Pages:
Java Classes:
● id: int
● empName: String
● empID: String
● empPass: int
● empSalary: int
● Constructors: Default and parameterized Constructor
● Setter Methods: setID(…), setEmpName(…), setEmpID(…), setEmpPass(…), setEmpSalary(…)
● Getter Methods: getID(), getEmpName(), getEmpID(), getEmpPass(), getEmpSalary() (should contain employee salary transactions related code)
● MAX: int (constant)
● emp: Employee
● databaseHelper: DatabaseHelper
● initDatabaseHelper(…), getEmpDetail(), isValidEmployee(…), withdrawSalary(…), getSalMaxLimit() (Should contain database related code)
● PATH: String
● FILE: String
● getConStatement(), getEmpDetail(…), updateSalaryBalance(…)

Java Servlets:
● init(), processRequest(…), initServicesSvlt(…) , showLoginErrorPage(…)
● processRequest(…), initWithdrawSalSvlt(…), initViewSalSvlt(…), updateServices(…), initEmpLogout(…)
● processRequest(…), viewSalBalance(…)
● processRequest(…), handleSalWithdrawAction(…), withdrawSalary(…)

Database File:
BC123456789.accdb (must be same as Your Own VU Student ID) and must be in Assets folder.


cs506 assignment 3 solution 2021

Download Solution file


Click on the below link to download the file

cs506 assignment solution file

Click on the below link to download the file



© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service