Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

I want the code in java Application Module. This module allows all the active users to: Apply leave. The rules for leave application are as

image text in transcribedI want the code in java

Application Module. This module allows all the active users to: Apply leave. The rules for leave application are as described below: - fromDate must be earlier than or equivalent to toDate. - frompate must be later than the system date by the number of days as defined in applicationDay of the selected Leave Type. - Total number of days applied for a leave must not be more than the leave balance of the employee's leave entitlement record (leave balance = entitlement - usage). - Approverid must be automatically captured based on the description as below: Let A be the superior of B,B be the superior of C, and C be the superior of D. Scenario 1: When D applies for a leave which the approvalLevel is " 1 ", C will be recorded the approver of the application. Scenario 2: When D applies for a leave which the approvalLevel is "2", B will be recorded the approver of the application. Scenario 3: When D applies for a leave which the approvaltevel is "3", A will be recorded the approver of the application. Scenario 4: When C applies for a leave which the approvalLevel is "2", A will be recorded the approver of the application. Scenario 5: When B applies for a leave which the approvalLevel is " 1 ", A will be recorded the approver of the application. (20 marks)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions