Northcentral Technical College Introduction To Programming
10-152-310
Introduction to Programming with JavaScript NTC 10-152-310

Learning Plan 5 5.3 Project - Part 2

# 5.3 Project - Part 2

#### File: /Learning Plan 5/5.3projectPart2.html

### Student

- Name:
- Section:
- Email:

### Specifications

- Open this file in Firefox and Microsoft Visual Studio.
- Add your name, section, and email.
- Open the file `jsFile/5.3projectPart2.js` in Microsoft Visual Studio.
- Your JavaScript code must go in the `jsFile/5.3projectPart2.js` file.
- Read the following problem statement and complete all steps in the development process.

### Problem Statement

> Write a program that will process the weekly employee time cards for all the employees of an organization. Each employee time card will have the these data items: an employee number, an employee name, an hourly wage rate, and the number hours worked during the week. Each employee is to be paid time-and-a-half for all hours worked over 35. A tax amount of 15% of gross salary is to be withheld. The output to the screen should display the employee's number and name, gross pay, withholding amount, and net pay. At the end of the report, display the total gross payroll amount, the total net payroll amount, and the average net pay paid per employee.

> For full credit, the program must use at least five (5) functions. The existing function named project53Part2 is one, you will need to create at least 4 more. (These new functions must, of course, be located in the js library file associated with this program.)

- Use the Employee Payroll Records as your data source.

### The Program Planning Lists

- In the following pre tag, write the three planning lists before doing any programming.

    The List of Input Variables:

    The List of Output Variables:

    The Process Checklist:

### The Test Plan

- For a test plan here, prior to doing any programming, you should manually calculate the correct gross pay, net pay, and withholding for 4 employees. At least two of these must be ones other than the four detail lines manually generated in class as a part of the group exercise.

    TEST PLAN:

    Test Case 1:
        Inputs:

        Expected Results:

    Test Case 2:
        Inputs:

        Expected Results:

    Test Case 3:
        Inputs:

        Expected Results:

    Test Case 4:
        Inputs:

        Expected Results:

### JavaScript Output

> Write the JavaScript code based on everything you've done. Your code must follow the course coding standards. You should add good comments about the different parts of your solution. And remember to compare the outputs manually generated in class for the group exercise as one aid to ensuring that the output is correct.

- Sample Output:

    Employee	Employee	Gross		Withholding	Net
    Number		Name		Pay		Amount		Pay

    101		Joe Coyne	581.25		87.19		494.06
    102		Fred Hensen	660.00		99.00		561.00
    ...

    Total Gross Payroll: 99999.99
    Total Net Payroll: 99999.99
    Average Net Pay: 999.99

- 5.3 Project - Part 2 Output: