Question: Java Script Programming Assignment 2 : Part 1 - Folder Structure: Inside of the CGS 2 8 2 0 folder, create a folder named JavaScript
Java Script Programming Assignment :
Part Folder Structure:
Inside of the CGS folder, create a folder named JavaScriptAssignment Inside of the JavaScriptAssignment folder create a folder named css This is where you will put your external style sheet. Inside of the JavaScriptAssignment folder, create another folder named js This is where you will put your JavaScript code.
Part Program description:
File: payroll.html
to be placed in the main JavaScriptAssignment folder Create a wellstyled HTML document like the bill.html document. The document will contain a form that will allow a user to enter payroll information about an employee. The information should be: employee ID employee name, hours worked, rate of pay. Put appropriate headings and labels in the document. When viewed in the browser, the form should float on the left and the payroll area for all employees should float on the right. The document will link to a JavaScript file called payroll.js described below. File: payroll.js to be placed in the js folder
Create a JavaScript file that will mimic the logic in bill.js in order to process the data entered in the form and place the results in the results area of the payroll.html document. The code should determine the weekly pay for each employee entered in the form including any overtime. Overtime cutoff is hours and overtime rate is times regular pay. The code should create paragraphs containing the name and ID of the employee, the number of regular hours worked, the number of overtime hours worked, weekly pay, income tax of weekly pay and net pay. Each item in each paragraph should be on a separate line. All money should be expressed as dollars with two decimal places. Hours should have one decimal place. The program should keep track of the total net pay which represents the amount of money paid out by the company. After all employee data has been entered signaled by the user clicking the total button the total amount of money disbursed should be displayed in its own paragraph in the results area below the list of employees. Error checking and formhandling logic should mirror that in bill.js File: payroll.css to be placed in the css folder Create a CSS file that makes the HTML page look good. You get to decide what that is The page should use techniques like those used in bill.css
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
