Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

create a java program base on the presentation Law firm employee analogy e common rules: hours, vacation, benefits, regulations all employees attend a common orientation

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

create a java program base on the presentation

Law firm employee analogy e common rules: hours, vacation, benefits, regulations all employees attend a common orientation to learn general company rules each employee receives a 20-page manual of common rules e each subdivision also has specific rules: employee receives a smaller (1-3 page) manual of these rules smaller manual adds some new rules and also changes some rules from the large manual Employee 20-page manual mpag.manual] ucragTanual][3.pmmanual] Marketer Secretary 1-page manual 3-page manual Lawyer Legalsecretary 1-page manual Separating behavior Why not just have a 22 page Lawyer manual, a 21-page Secretary manual, a 23-page Marketer manual, etc.? Some advantages of the separate manuals: maintenance: Only one update if a common rule changes. locality; Quick discovery of all rules specfc to lawyers. .Some key ideas from this example: General rules are useful (the 20-page manual). Specific rules that may override general ones are also useful Is-a relationships, hierarchies is-a relationship: A hierarchical connection where one category can be treated as a specialized version of another. every marketer is an employee every legal secretary is a secretary e inheritance hierarchy: A set of classes connected by is-a relationships that can share common code Open igure Closed Figure Erlipso LUne Poygon Clrcle Emplovee requlations Consider the following employee regulations: Employees work 40 hours / week. Employees make $40,000 per year, except legal secretaries who make $5,000 extra per year ($45,000 total), and marketers who make $10,000 extra per year ($50,000 total). Employees have 2 weeks of paid vacation leave per year, except lawyers who get an extra week (a total of 3) Employees should use a yellow form to apply for leave, except for lawyers who use a pink form . Each type of employee has some unique behavior: Lawyers know how to sue. Marketers know how to advertise. Secretaries know how to take dictation. Legal secretaries know how to prepare legal documents

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_2

Step: 3

blur-text-image_3

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

Decisions Based On Data Analytics For Business Excellence

Authors: Bastian Weber

1st Edition

9358681683, 978-9358681680

More Books

Students also viewed these Databases questions

Question

When would you want to use a preferred supplier?

Answered: 1 week ago