Question: This is net pay calculator in javascript/HTML. Assignment 3 Topic: MVC In this assignment, you will get to practice writing an app using the MVC
This is net pay calculator in javascript/HTML.
Assignment 3 Topic: MVC In this assignment, you will get to practice writing an app using the MVC model. The application asks the user for their name, gross pay, and the number of dependents. When the user click submit, it will compute a result page containing the user information in addition to the tax rate and the net pay.
Computing the tax rate: The number of dependents will determine which tax bracket the user ends up in. The tax bracket is as followed: 0 1 Dependents : Tax = 20% 2 3 Dependents : Tax = 15% 4+ Dependents : Tax = 10% Once the user has provided all the information with no errors and hit the submit button, the app displays the users full name, gross pay, number of dependents, tax rate and net pay. The formula to compute the net pay is: monthly gross pay (monthly gross pay * tax tax rate) Error handling: Your app should check for errors. The name must not be empty. The gross pay must not be empty and must be numbers. You can assume the user will not enter negative numbers. Handling negative values is optional. If any of the input field contains errors, clicking on the submit button will display the error messages below the form. The error message should be red.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
