mplement the code according to the giving class diagram

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter3: Using Methods, Classes, And Objects
Section: Chapter Questions
Problem 16RQ
icon
Related questions
Question

Implement the code according to the giving class diagram

[hint: you need to calculate WRT and HRT percentages [WRT=Salary*(80/100)]

Formula: Total Salary = Salary + WRT + HRT)

Note:

solve as soon as possible with in one hour

use oop concepts

SALARY
WORKING HOURS TAX
HR TAX
<= 10000
80%
15%
<= 20000
90%
20%
> 20000
95%
25%
lution [copy your code solution in below row]
Transcribed Image Text:SALARY WORKING HOURS TAX HR TAX <= 10000 80% 15% <= 20000 90% 20% > 20000 95% 25% lution [copy your code solution in below row]
Employee
-EmpName: string
-BasicSalary: int
-WRT: int
-HRT: int
+Employee()
+CalculateGrossSalary()
Transcribed Image Text:Employee -EmpName: string -BasicSalary: int -WRT: int -HRT: int +Employee() +CalculateGrossSalary()
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Structure chart
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT