Coding Standards: When writing code in this unit you are required to adhere to the Coding Standards and General Principles as defined in the FAQ in vUWS. Your code for the following exercises should adopt these standards and general principles. 1. This is a continuation of Exercise 1 from Week 5 practical exercises. Use the two java files, Employee.java and EmployeeDemo.java that you developed in Exercise 1 Week 5. Import the two java files into a new project in Eclipse then: a. Add the following data fields to the Employee class Department – the name of the department where the employee works [a string] Position – the employees job title [a string] Supervisor id – the staff id of the supervisor for the employee [an integer] Pay rate – the hourly pay rate for the employee [a float] Hours worked – the total hours worked by the employee in the current pay period [a float] b. Add accessor and mutator methods for these new data fields to the Employee class c. Implement input validation for pay rate and Hours Worked to ensure that negative values are not allowed. Should this be the responsibility of the Employee class or the main program? d. Add the following constructors to the Employee class

Found something interesting ?

• On-time delivery guarantee
• PhD-level professional writers
• Free Plagiarism Report

• 100% money-back guarantee
• Absolute Privacy & Confidentiality
• High Quality custom-written papers

Related Model Questions

Feel free to peruse our college and university model questions. If any our our assignment tasks interests you, click to place your order. Every paper is written by our professional essay writers from scratch to avoid plagiarism. We guarantee highest quality of work besides delivering your paper on time.

Grab your Discount!

25% Coupon Code: SAVE25
get 25% !!