Subroutine and Employee Class

Topics: Subroutine, Java, Object-oriented programming Pages: 2 (385 words) Published: December 5, 2013
ou will want to use the Week 5 project as the starting point for the lab. Use the directions from the previous weeks labs to create the project and the folders.

Create a new project named "CIS247_WK4_Lab_LASTNAME". An empty project will then be created. Delete the default Program.cs file that is created.
Add the Logic Tier, Presentation Tier, and Utilities folders to your proejct Add the Week 5 project files to the appropraties folders. Update the program information in the ApplicationUtilities.DisplayApplicationInformation method to reflect your name, current lab, and program description.

Note: as an alternative you can open up the Week 5 project and make modifications to the existing project. Remember, there is a copy of your project in the zip file you submitted for grading.

Before attempting this week's steps ensure that the Week 5 project is error free.

STEP 3: Modify the Employee Class
Back to top

Modify the class declaration of the Employee class to specify that the Employee class is an abstract class Declare an abstract method called CalculateNetPay that returns a double value. Modify the ToString Method to include the weekly net pay in currency format.

STEP 4: Modify the Salaried Class
Back to top

Add a double constant called TAX_RATE and set the value to .73 Implement the CalculateNetPay method by multiplying the weekly pay by the tax rate.

STEP 5: Modify the Hourly Class
Back to top

Add a double constant called TAX_RATE and set the value to .82 Implement the CalculateNetPay method by multiplying the weekly pay by the tax rate.

STEP 6: Create the Main Program
Back to top

Change the employeeList array to only hold two objects
Create one Hourly employee object and store it in the array. Create one Salaried employee object and store it in the array. As you did in the Week 5 lab, prompt for and collect the information for each of the objects.

Note:...
Continue Reading

Please join StudyMode to read the full document

You May Also Find These Documents Helpful

  • employee Essay
  • Essay on employee engagement
  • traditional class vs online class Essay
  • Class Essay
  • Class Essay
  • Class Essay
  • Class Essay
  • Employee Rights And Responsibilites Essay

Become a StudyMode Member

Sign Up - It's Free