Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Notes: 1) in case the java code does not match your class diagram then you will take zero. 2) Cheating and similar works mean zero.

image text in transcribed

Notes: 1) in case the java code does not match your class diagram then you will take zero. 2) Cheating and similar works mean zero. 3) The class diagram must be submitted as jpg image. Problem: Consider there is an Employee class that is described by Name, Salary, and Set of Account objects. Each Account is described by two variables: id, balance. The Account object can be changed during execution into three possible types: saving, current and credit. For saving account, the Employee cannot withdraw but can make deposit. For current account, the Employee can make both withdraw and deposit. Finally, for credit card the Employee can make withdraw with limit from credit card balance and can pay the total expenses of credit card from balance. There is need to create as many as filters to retrieve the objects according to the following criteria: 1. Business Filter with all employees with Salary > 10000. 2. Rich Filter with all balance > 100,000. 3. Saving Filter. 4. Current Filter. 5. Credit Filter. 6. Retrieve all employees who are businessmen and not rich, or having saving account. 7. Retrieve all employees who are business XNOR rich. 8. Retrieve all employees who have Credit or not business and must be rich. Questions: 1. Design the above problem as class diagram Use Design Patterns that you learned. (20%) 2. Write Java project for the above scenario. [80%]

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Explain the causes of indiscipline.

Answered: 1 week ago