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 is a packet switching, End systems are connected together by communica...

End systems are connected together by communication links. There are various types of communication links, which are made of numerous types of physical media, comprising twisted pa

Standards used for development of a system, Q. Standards used for developme...

Q. Standards used for development of a system? Documentation standards: It must be an ongoing activity at the time of system development life cycle.  Quality Standards:

Can you list out some of enhancements in verilog 2001, Can you list out som...

Can you list out some of enhancements in Verilog 2001? In  earlier  version  of  Verilog,  we  use  'or'  to  specify  more  than  one  element  in  sensitivity  list.  In Veri

IEEE802.4 Token Bus Network, en a five station token bus LAN with station a...

en a five station token bus LAN with station addresses of 3000, 500, 100, 70, and 50. Stations with addresses of 5000, 4000, 400, 90, and 60 are waiting to enter the ring. Assume a

Illustrate lcd technology, Q. Illustrate LCD Technology? The technology...

Q. Illustrate LCD Technology? The technology behind LCD is known as Nematic Technology since the molecules of liquid crystals used are nematic which implies that rod-shaped. Th

Write pseudocode, Ask question #Minimum 100 If today is a weekday and it’s ...

Ask question #Minimum 100 If today is a weekday and it’s not a holiday, then you go to work. However, if it’s a weekday and a holiday, then what you do depends on the weather: If i

Compact disk read only memory, Q. What is Compact Disk Read Only Memory? ...

Q. What is Compact Disk Read Only Memory? This technology has evolved out of entertainment electronics market where cassette tapes and long playing records are being replaced b

What are the types of pipeline hazards, What are the types of pipeline haza...

What are the types of pipeline hazards? The various pipeline hazards are:  1. Data hazard  2. Structural Hazard  3. Control Hazard.

Explain the working of thousand line exchanges, E xplain the working of th...

E xplain the working of thousand line exchanges by u sing a combination of uniselectors and two motion selectors. The schematic diagram for such an exchange is demonstrated i

Advantages offered by data mining, Advantages offered by Data Mining: 1...

Advantages offered by Data Mining: 1.  Facilitates discovery of knowledge from big, massive data sets. 2.  Can be used within dissimilar application areas by Fraud detection

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