Inheritance, Computer Engineering

Assignment Help:

Create a new project, LastNameFirst05, for this assignment. You will need to define the classes depicted in the class diagram below. All of the classes should contain complete javadoc documentation. All classes should be placed in the edu.washington.ext package.

Each of the classes must minimally comply with the class diagram and the general descriptions below:

Employee
A simple interface defining all operations that must be availabe for all employees.

StoreEmployee
Store employees have a rate of pay, their current number of hours worked and their current sales. A store employees pay is their hourly rate multiplied by the current hours worked.

SalesAssociate
Sales associates are store employees who also recieve a commission on their sales. The commission is a pecentage of their current sales, individual sales associates may receive different percentages of their sales in commission.

Manager
Manager's receive their base pay plus a bonus equal to a percentage of the stores total sales. All managers receive the same percentage of their store's sales. Manager's don't receive separate commission/bonus for their individual sales.

Store
Each store has one manager and a number of employees. A store's payroll is processed by calculating the pay for, and creating a payroll record for, each employee.

PayrollRecord
A payroll record simply maintains the employee's name and their pay.

StoreTest
A JUnit test that tests the store class directly and the employee classes indirectly. Only the getCurrentSales and processPayrollmethods need to be tested. The test shall instantiate a store and add the following manager and employess to the store.

  • Manager: base pay = 4000.00, current sales = 10000.00, manager bonus rate 0.5%
  • Office employee: hourly rate = 10.50, current hours = 160, current sales = 500.00
  • Sales associate: hourly rate = 12.50, current hours = 138, commission rate = 2%, current sales = 15000
  • Sales associate: hourly rate = 14.50, current hours = 160, commission rate = 2%, current sales = 30000
  • Sales associate: hourly rate = 15.00, current hours = 160, commission rate = 3%, current sales = 45000

Using this data the tests should verify the following values:

  • Manager pay = 4502.50
  • Office employee pay = 1680.00
  • Sales associate #1 pay = 2025.00
  • Sales associate #2 pay = 2920.00
  • Sales associate #2 pay = 3750.00
  • Store current sales = 100500.00

Related Discussions:- Inheritance

What happens if acknowledge() is called within a transaction, As per the JM...

As per the JMS specification, when you are in a transaction, the acknowledge Mode is ignored. If acknowledge() is known as within a transaction, it is ignored.

Syntax and semantics for first-order logic , Syntax and Semanticsx and Sema...

Syntax and Semanticsx and Semantics for First-order logic - artificial intelligence: Propositional logic is limited  in its expressiveness: it may just represent true and false

How address symbol table is generated, Address symbol table is generated by...

Address symbol table is generated by the  (A) memory management software.  (B) assembler.  (C) match logic of associative memory.   (D) generated by operating system

own subprogram, Create your own Subprogram that uses at least 1input param...

Create your own Subprogram that uses at least 1input parameter and a return parameter. You decide the theme. You should give the pseudocode and an example Subroutine call. Be sure

Explain programmer visible registers, Q. Explain Programmer Visible Registe...

Q. Explain Programmer Visible Registers? These registers can be accessed employing machine language. In general we encounter four kinds of programmer visible registers.

Define the system users, Q. Define the System users? System users are d...

Q. Define the System users? System users are defined as the people who employ information systems or who are affected by information system on a regular basis i.e. validating,

Distinguish between min terms and max terms, Distinguish between min terms ...

Distinguish between min terms and max terms. Ans Differentiate between Minterms and Maxterms: a. Each single term in standard Sum Of Products (SOP) form is termed as minterm

Explain token ring, Explain Token Ring. Token Ring: A token ring is ...

Explain Token Ring. Token Ring: A token ring is a collection of single point -to-point links, which arise from a circle. In a token ring a special bi t pattern, termed as th

Is the basic list deleted when the new list is created, Is the basic list d...

Is the basic list deleted when the new list is created? No.  It is not removed and you can return back to it using one of the standard navigation functions like clicking on th

Associativity of connectives - artificial intelligence, Associativity of Co...

Associativity of Connectives: In order to tell us brackets are useful when to perform calculations in arithmetic and when to evaluate the truth of sentences in logic. Imagine w

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd