Paycheck Version 2 Calculator The Paycheck Version 2 assignment requires that we create an application that calculates paycheck information. Save the paycheck.html form completed in the previous...

1 answer below »
need a javascript programmer to assist


Paycheck Version 2 Calculator The Paycheck Version 2 assignment requires that we create an application that calculates paycheck information. Save the paycheck.html form completed in the previous assignment as paycheck2.html and save the paycheck.js file completed in the previous assignment as paycheck2.js. The user inputs First Name, Last Name, Hours Worked, Hourly Pay Rate, FICA, State, and Federal Tax Rates. The application calculates and displays the Regular Hours, Overtime Hours, Regular Pay, Overtime Pay, Gross Pay, Total Taxes, and Net Pay. The application also performs the following user entry validation tests: 1. Ensure that Hours Worked is entered and is between 0 and 80. 2. Ensure that Hourly Pay Rate is entered and is between 0 and 100.00. If both of the above conditions are not met, an error message alert window appears that says the following: Please enter valid hours and a valid payrate! Because the user isn’t entering Regular Hours and Overtime Hours as with the first paycheck assignment, you must use an If statement to test Hours Worked to calculate Regular Hours and OverTime Hours and Regular Pay and Overtime Pay. All Hours Worked over 40 are considered Overtime Hours while Hours Worked between 0 and 40 are considered Regular Hours. As with the previous assignment, Regular Pay is calculated as Regular Hours worked * Hourly Pay Rate. Overtime Pay is calculate as Overtime Hours * Hourly Rate * 1.5. All of the remaining Gross Pay, Total Taxes, and Net Pay variables are calculated as with the previous assignment. The following screenshots demonstrate how the application works: 1. Upon entry to the paycheck2.html form, the user sees the following: 2. Enter the First Name, Last Name, Hours Worked, Hourly Rate, Fica Tax Rate, State Tax Rate, and Federal Tax Rate: Test data used for the example shown: Jane Doe, 80, 100.00, 5.65, 5.75, 28.00. 3. Test with Jane Doe, 0, 0, 5.65, 5.75, 28.00. Although no pay will be calculated, the Employee Name of Jane Doe should appear at the bottom of the form. 4. Test with Jane Doe, Hours Worked of 40, Hourly Pay Rate of 10.00, and 5.65, 5.75, and 28.00 for tax rates respectively. Regular Pay should display 4000.00. Overtime Pay should display 0. Gross Pay should display 4000.00. Total Taxes should display 1576.00 and Net Pay should display 2424.00. 5. Click on Calculate and the following results will display: 6. Perform Invalid Data Tests. Each of the following tests should result in an alert window: Hours Worked less than 0. Enter -.1 in the Hours Worked field. Enter valid test data of Jane Doe and an Hourly Rate of 100.00. An alert window should appear: Hours Worked greater than 80. Enter 80.1 in the Hours Worked field. Enter valid test data of Jane Doe and an Hourly Rate of 100.00. Hourly Rate less than 0. Enter-.1 in the Hourly Rate field. Enter valid test data of Jane Doe and Hours Worked of 1.00. Hourly Rate greater than100. Enter 100.1 in the Hourly Rate field. Enter valid test data of Jane Doe and Hours Worked of 1.00. Hours Worked and Hourly Rate less than 0. Enter -.1 in the Hours Worked field. Enter - .1 in the Hourly Rate field. Enter valid name of Jane Doe. Hours Worked and Hourly Rate more than 0. Enter 80.1 in the Hours Worked field. Enter 100.1 in the Hourly Rate field. Enter valid name of Jane Doe. Based on the screenshots above, requirements are as follows: 1. Create an HTML5 file that contains a HTML form like the screenshots shown above that accepts the First Name, Last Name, Hours Worked, Hourly Rate, Fica Tax Rate, State Tax Rate, and Federal Tax Rate for entry and shows the Regular Hours Worked, Overtime Hours Worked, Regular Pay, Overtime Pay, Gross Pay, Total Taxes, Employee Name, and Net Pay and a submit button with the label Calculate. Save the file as paycheck2.html and store it in your Ch05directory. The paycheck2.html file must be free of errors and validated. Add the necessary code to link to a CSS file called styles.css that is stored in your Ch05/css subdirectory. Add the necessary code to use the paycheck2.js file that is stored in your Ch05/js subdirectory. (5 Points) 2. Download the styles.css file and store it in your Ch05/css subdirectory. (1 Point) 3. Create and debug a JavaScript file that processes the Paycheck information from the paycheck.html file that meets the following specifications (43 Points Total as broken down below): a. Save the file as paycheck2.js in your Ch05/js subdirectory. (1 Point) b. Create a function that is called when the paycheck2.html form is submitted. The function must include the following information. (3 Points) c. Output variables for the Regular Hours, Overtime Hours, Regular Pay, Overtime Pay, Gross Pay, Total Taxes, Net Pay, and Employee Name return results to the paycheck2.html file. (2 Points) d. Input variables for the First Name, Last Name, Hours Worked, Hourly Rate, Fica Tax, State Tax, and Federal Tax use the document.getElementByID method to retrieve input from the paycheck2.html file). (2 Points) e. An if then else statement will be used to ensure that Hours Worked is entered and is between 0 and 80 and that Hourly Pay Rate is entered and is between 0 and 100.00. If both of the above conditions are not met, an error message alert window appears that says the following: Please enter valid hours and a valid payrate! (10 Points) f. An if then else statement will be used to determine Regular Hours and Overtime Hours wherein Hours Worked over 40 are Overtime Hours and Hours Worked between 0 and 40 are Regular Hours. (10 Points) g. Regular Pay will be correctly calculated and formatted with the toFixed() method. (2 Points) h. Overtime Pay will be correctly calculated and formatted with the toFixed() method. (2 Points) i. Gross Pay will be correctly calculated and formatted with the toFixed() method. (2 Points) j. Fica Tax deducted will be correctly calculated. (1 Point) k. State Tax deducted will be correctly calculated. (1 Point) l. Federal Tax deducted will be correctly calculated. (1 Point) m. Total Taxes will be correctly calculated and formatted. (2 Points) n. The Employee Name will be correctly displayed. (1 Point) o. The Net Pay will be correctly calculated and formatted with the toFixed() method. (2 Points) p. The init() function will be correctly used. (1 Point) 4. Submit the paycheck2.html, styles.css, and paycheck2.js files to Blackboard. (1 Point) Helpful Hints: The most helpful resources to review for completing this assignment are the paycheck.html and paycheck.js files from the previous assignment and the membership.html, membership.js, sphere.html, sphere.js, contact.html and contact.js files from Ch 05 in the textbook.
Answered 5 days AfterSep 14, 2021

Answer To: Paycheck Version 2 Calculator The Paycheck Version 2 assignment requires that we create an...

Sandeep Kumar answered on Sep 19 2021
116 Votes
paycheck.css
* {
padding: 0;
box-sizing: content-box;
}
html {
background-color: #7cffcb;
background-image: linear-gradient(315deg, #7c
ffcb 0%, #74f2ce 74%);
}
body {font-family: 'Bitter', serif;}
h1 {
font-size: 400%;
text-align: center;
}
.footnote {
font-size: 70%;
text-align: center;
}
.calcForm {
display: flex;
justify-content: flex-end;
text-align: center;
margin-left: 10%;
}
input { text-align: center;}
form {
background: mistyrose;
box-shadow: 2px 5px 2px midnightblue;
border: 5px solid mistyrose;
border-radius: 10%;
margin: auto;
padding: 4%;
}
#checkbox { margin-bottom: 10%;}
span,
#predictPay { color:goldenrod; }
.resultForm {
background: midnightblue;
text-align: center;
font-size: 100%;
border: 10px solid mistyrose;
box-shadow: 2px 5px 2px midnightblue;
border-radius: 10%;
display: flex;
justify-content: flex-end;
margin-left: 2%;
margin-right: 15%;
padding-left: 5%;
padding-right: 5%;
padding-block: 5%;
}
.result { text-align: center; }
.predictPay {
color:goldenrod;
text-shadow: 1px 2px 1px midnightblue;
}
button {
font-family: 'Bitter', serif;
background: none;
border: none;
color: goldenrod;
text-decoration: underline;
}
.resultForm p,
.resultForm h3 {color: mistyrose;}
paycheck.html
PAYCHECK PSYCHIC



Log the hours you worked
Week 1: hours and minutes.
...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here