GrossWages JavaScript Answer

Click images below to Full Zoom: (Contact us for more Screenshots.) Files: - (31.69 KB)
>>Click to View Files<<
*All your data are SECURED & ENCRYPTED using a valid, trusted server certificate (Comodo SSL) and we don’t store credit card information on our servers and all Payments are SECURED & handled by Paypal
SSL CertificatePaypal

In a separate JS file, write a function to calculate gross wages for an hourly employee. The function should receive two parameters: the pay rate (dollars per hour, a floating point number) and the hours worked. Hours from 0 through 40 are “straight time” pay, and any hours in excess of 40 are overtime pay at 1.5 times the standard rate (hint: use the ? : operator to make a decision about pay rates). The function should return a floating point number representing the gross pay amount. Note, the function should not do any output such as document.writeln or alerts.