Preview

Subroutine and Employee Class

Satisfactory Essays
Open Document
Open Document
385 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Subroutine and Employee Class
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.

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Week 6 Lab Report

    • 426 Words
    • 2 Pages

    Answer the lab questions for this week and summarize the lab experience using this form.…

    • 426 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    New project then give a file name as shown in figure 1 and go for next option.…

    • 419 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Insert completed data tables for each part of the lab. Be sure that the data tables are organized and include units when necessary.…

    • 356 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Nt1330 Unit 6 Lab Report

    • 1088 Words
    • 5 Pages

    This lab requires that you answer questions, shoot screen shots, and perform other activities that you will document in a worksheet named for the lab. You will find the worksheet on Moodle. It is recommended that you use a USB flash drive to store your worksheets so you can submit them to your instructor for review. As you perform the exercises in each lab, open the…

    • 1088 Words
    • 5 Pages
    Good Essays
  • Powerful Essays

    BIOL102 Lab 1

    • 1686 Words
    • 8 Pages

    To conduct your laboratory exercises, use the Laboratory Manual located under Course Content. Read the introduction and the directions for each exercise/experiment carefully before completing the exercises/experiments and answering the questions.…

    • 1686 Words
    • 8 Pages
    Powerful Essays
  • Powerful Essays

    PT2520

    • 1263 Words
    • 7 Pages

    Upon completion of the project, you will submit a MS Word document with the answers to the three questions integrated within the project at key points. Questions 1 & 2 are located at the end of Step 11 and Question 3 at the end of Step 12 of the Technical Steps section of this lab. This MS Word document will be named nn_Projectanswers.doc where “nn” will be changed to your initials.…

    • 1263 Words
    • 7 Pages
    Powerful Essays
  • Satisfactory Essays

    Each lab in this manual requires that you answer questions, create screen shots, and perform other activities that you will document in a worksheet named for the lab, such as Lab01_worksheet.docx. It is recommended that you use a USB flash drive to store your worksheets, so you can submit them to your instructor for review. As you perform the exercises in each lab, open the appropriate worksheet file, fill in the required information, and save the file to your flash drive.…

    • 1996 Words
    • 8 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Answer the following questions about the results of the virtual lab activity. Record your answers in the boxes.…

    • 307 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Week 5 Assessment

    • 1649 Words
    • 6 Pages

    3. When done, submit your document, and the Project® mpp file to the Assessment assignment for Week 5.…

    • 1649 Words
    • 6 Pages
    Good Essays
  • Satisfactory Essays

    A and P Lab Two

    • 840 Words
    • 4 Pages

    Directions: There are eight (8) activities in this lab. Please be sure to complete them all. For all questions, type your answers into the yellow box ____ (including your name above) it will expand as you write.…

    • 840 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Ms105

    • 297 Words
    • 2 Pages

    Once you complete designing your own experiment, check the assignment for directions on how to submit your final product to your instructor.…

    • 297 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    each one of the questions. You should print out this hard copy of the lab and attempt to answer…

    • 1541 Words
    • 7 Pages
    Good Essays
  • Good Essays

    Answer the lab questions for this week and summarize the lab experience using this form.…

    • 716 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Density Lab

    • 832 Words
    • 4 Pages

    List the materials used in this lab, and write a brief explanation of the procedures you followed. (You do not need to retype the procedure; simply summarize your procedures you used.) Procedures: Materials:…

    • 832 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Science

    • 546 Words
    • 3 Pages

    Instructions: Enter the Virtual Lab, and conduct the experiments provided before going out into the filed for additional research. Please type your answers. When your lab report is complete, submit it to the Submitted Assignments area of the Virtual Classroom.…

    • 546 Words
    • 3 Pages
    Good Essays