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

Attachments:

Replies to This Discussion

cs506 assignment 3 solution 2021

QUESTION STATEMENT IN SHORT

If employee credentials (i.e. employee id and password) are correct, then ESS dashboard page will open (i.e. EmpServicesSvlt.java) 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 ViewSalSvlt.java) 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 WithdrawSalSvlt.java) as shown in Fig 4.

Employee can withdraw salary which is multiple of Rs. 1000/- and maximum of Rs. 30000/- .Hint is given below:
Hint:
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 EmpServicesSvlt.java) as shown in Fig 5.
Note:
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:
index.html
Java Classes:
Employee.java:
Attributes:
● id: int
● empName: String
● empID: String
● empPass: int
● empSalary: int
Methods:
● Constructors: Default and parameterized Constructor
● Setter Methods: setID(…), setEmpName(…), setEmpID(…), setEmpPass(…), setEmpSalary(…)
● Getter Methods: getID(), getEmpName(), getEmpID(), getEmpPass(), getEmpSalary()

EmpACManager.java: (should contain employee salary transactions related code)
Attributes:
● MAX: int (constant)
● emp: Employee
● databaseHelper: DatabaseHelper
Methods:
● initDatabaseHelper(…), getEmpDetail(), isValidEmployee(…), withdrawSalary(…), getSalMaxLimit()

DatabaseHelper.java: (Should contain database related code)
Attributes:
● PATH: String
● FILE: String
Methods:
● getConStatement(), getEmpDetail(…), updateSalaryBalance(…)

Java Servlets:
LoginSvlt.java:
Methods:
● init(), processRequest(…), initServicesSvlt(…) , showLoginErrorPage(…)

EmpServicesSvlt.java:
Methods:
● processRequest(…), initWithdrawSalSvlt(…), initViewSalSvlt(…), updateServices(…), initEmpLogout(…)

ViewSalSvlt.java:
Methods:
● processRequest(…), viewSalBalance(…)

WithdrawSalSvlt.java:
Methods:
● 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

CS506-100-percent-Working-Solution-Assignment-3-fall-2020

Click on the below link to download the file

CS506-100-percent-Working-Solution-Assignment-3-fall-2020.zip

cs506 assignment solution file

Click on the below link to download the file

cs506%20assignment%20solution%20file.doc

RSS

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

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