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

Interfacing assembly language routines, By now you can write procedures bot...

By now you can write procedures both internal andexternal and pass parameters particularly through stack.Let's us use these concepts to see how assembly language can be interfaced

Determine in detail about the vhdl, Determine in detail about the VHDL ...

Determine in detail about the VHDL Multiple design-units (entity/architecture pairs), which reside in the same system file, may be separately compiled if so desired. Though, it

Calculate print speed of printers, Q. Calculate Print Speed of printers? ...

Q. Calculate Print Speed of printers? Speed at which a printer prints is generally an important issue. Though the printer has to take a certain time to print. Printing time ris

Problems for decision tree learning, Appropriate Problems for Decision Tree...

Appropriate Problems for Decision Tree Learning : However remember there that is a skilled job in "AI" to choose exactly the right learning representation ormethod for a parti

Explain stored program control, Explain Stored Program Control. Stored...

Explain Stored Program Control. Stored Program Control: Modern digital computers utilize the stored programmed idea. Now, a program or a set of instructions to the computer i

Explain that lost acknowledgement in packet retransmission, Explain that th...

Explain that the lost acknowledgement does not necessarily enforce retransmission of the packet . To guarantee reliable transfer, protocols utilize positive acknowledgement al

The interface chip design, This is an embedded system that involves the int...

This is an embedded system that involves the integration of hardware and software design stages. It consists of the user interface (keypads and LCD display) and two Peripheral Inte

Determine the benefits of developing prototype, Determine the benefits of d...

Determine the benefits of developing prototype According to SOMM [96] benefits of developing prototype are as following:  1.  Communication gap between clients and software

What are primary keys and foreign keys, What are primary keys and foreign k...

What are primary keys and foreign keys? Primary keys are the unique identifiers for every row. They must have unique values and cannot be null. Due to their significance in rel

Execution error and compilation error, Execution error and compilation erro...

Execution error and compilation error: Errors like as mismatch of data types or array out of bound error are called as execution errors or runtime errors. These errors are us

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