Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE HELP WITH JAVASCRIPT!! FILL IN SKELETON CODE. Below are instructions and a Source/Skeleton code that need to be filled in. I don't understand how

PLEASE HELP WITH JAVASCRIPT!! FILL IN SKELETON CODE.

Below are instructions and a Source/Skeleton code that need to be filled in. I don't understand how to make it work.

image text in transcribedimage text in transcribed

Here is the skeleton/source code:

Auto Paycheck


CS170 Management Group Rutgers University 7 College Ave, New Brunswick, NJ 08901
Check Number
Pay Date

The following fields MUST have information: First Name, Last Name, Address, City, Zip Code, State Once all three fields were populated, and the button pressed, the program's logic (to be implemented) will compute all required components and set them in the proper fields. You only need to populate the following fields within the paycheck: Check Number check Number Box Pay Date payDateBox Dollar Amount (NOT the words, that happens automatically assuming your computation is right) The name of the employee orderName The address of the employee order,Address Money description payMoney Instructions You will complete the implementation of the following functions: function processCheck0 This is the main function, the one which will be called when the button is pressed. From here you will call the other functions in order to obtain all the required information to populate the input fields. Use the given function getValueString(val) were val is a real number value. function getName() A simple function which returns the concatenation of firstname middlename+lastname function getAddress0 Just as getName, but it returns a single string with the following format Address City, State, Zip Note the break line from address to the last line. This can be achieve with the special character In function calculateTotal0 1... return a single value, rounded to TWO digits. You will compute the total Bl-WEEKLY (26 paychecks per year) salary based on the following rules: CAT A Manufacturing $55000 CAT B Accounting $69500 CAT C- Administrative $58700 CAT D IT $73200 Night shift 10% extra Rotating 15% discount for general deductions No Health Plan HMO Health Plan 9% discount PPO Health Plan 11% discount

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

Students also viewed these Databases questions

Question

5. Recognize your ability to repair and let go of painful conflict

Answered: 1 week ago