Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Paycheck Calculator PHP In this assignment you need to create a form to allow the user to enter employees name, pay rate, and weekly hours

Paycheck Calculator

PHP In this assignment you need to create a form to allow the user to enter employees name, pay rate, and weekly hours work. That information will be sent to a PHP script that will process and display the employees paycheck information. Your assignment should have two pages. The first page is straight html (user_input.html) that has a form with the appropriate form elements to collect the user input. The form should then be submitted using the POST method to a PHP script (display_paycheck.php) that will process the user input. Screen shot of the user_input.html file (The first page that is straight html) The PHP script (display_paycheck.php) will receive the user input, assign it to variables, calculate and display the following pay check information:

image text in transcribed

Gross Pay (hours worked times pay rate) Federal Taxes (10.65% of Gross Pay) State Taxes (4% of Gross Pay) Social Security Taxes (3.8% of Gross Pay) Medicare (1.3% of Gross Pay) Total Taxes (Federal + State + Social Security + Medicare) Net Pay (Gross Pay Total Taxes For all the above calculations, will be assigned to variables that have descriptive names. The PHP script should calculate and display the results in the following format. Notice that the left column of the table is in bold and left justified, and the right column is right justified. There is also a link to return back to the user_input.html page. Screen shot of the results that the second page (display_paycheck.php script) produces

image text in transcribed

Please enter employee info John First Name: Last Name: Weekly Hours Worked 40 Hourly Rate S Submit Doe 10.75 Reset

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning ASP.NET 2.0 And Databases

Authors: John Kauffman, Bradley Millington

1st Edition

0471781347, 978-0471781349

More Books

Students also viewed these Databases questions

Question

=+9. Think about a campaign direction.

Answered: 1 week ago

Question

=+Who is the audience?

Answered: 1 week ago