Question: JavaScript Programming Develop the Sales Tax CalculatorIn this assignment, youll develop an application that calculates the sales tax and invoice total after the user enters

JavaScript Programming

Develop the Sales Tax CalculatorIn this assignment, youll develop an application that calculates the sales tax and invoice total after the user enters the subtotal and tax rateJavaScript files in this folder:JavaScriptProgramming-Assignment3\sales_tax\Then, run the application to see the user interface shown above, although that interface wont do anything until you develop the JavaScript for it.2.In the JavaScript file, note that the $ function has been coded for you. It gets the object for the HTML element thats specified by the id attribute. 3.Code an event handler (function) named processEntries() that gets the user entries, calculates the sales tax and total, and displays those results in the text boxes.4.Code an onload event handler that attaches the processEntries() function to the click event of the Calculate button. Then, test what you have so far.5.Add data validation to the processEntries() function. The subtotal entry should be a valid, positive number thats less than 10,000. The tax rate should be a valid, positive number thats less than 12. The error messages should be displayed in alert dialog boxes, and the error messages should be:Subtotal must be > 0 and < 10000 Tax Rate must be > 0 and < 126.Add JavaScript that moves the cursor to the Subtotal field when the application starts and when the user clicks on the Calculate button.7.Add the JavaScript event handler for the click event of the Clear button. This should clear all text boxes and move the cursor to the Subtotal field.8.Add JavaScript event handlers for the click events of the Subtotal and Tax Rate text boxes. Each handler should clear the data from the text box.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!