The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Need code for attached assignment. I'm using sublime text 2 editor. Doesn't matter what is used as long as I can run code. Look forward to hearing from you.
Â
Â
IST 239 Datum and JavaScript
Chapter 4 Assignment
Create an html document called chap4assign.htm using your editor, as explained in the
following specifications:
1. Create the html file with a <title> tag that states: Chapter 4 Assignment.
2. Create a Simple Paycheck Calculation Program.
3. In the <head> section, create two functions, one named input_output and one
named calculate_pay.
4. The input_output function should:
a. Prompt the user for the following:
i. Hours Worked (hours)
ii. Hourly Pay Rate ($)
iii. Tax Rate (%)
b. Then, using document.write() statements, output the input information and
net pay as shown in the sample below. Each line should be within <h1>
tags. In order to obtain the value of net pay, it will call the calculate_pay
function.
5. The calculate_pay function will receive the three inputs, calculate the gross pay,
calculate the tax amount, and subtract the tax amount from the gross pay giving
the net pay. The net pay will then be returned for output.
6. In the <body> section, write the JavaScript code that will call the input_output
function.
7. Page background should be light green.
8. The pay amounts should be shown with two decimal places Save the html file. Once you’ve completed this assignment, zip the file and submit the
zip file into the appropriate Dropbox.