Answered step by step
Verified Expert Solution
Question
1 Approved Answer
JavaScript program that prompts the user to enter an annual gross salary amount. It should then use the below criteria to calculate the tax and
- JavaScript program that prompts the user to enter an annual gross salary amount. It should then use the below criteria to calculate the tax and display the entered gross salary along with the calculated tax and the net salary (gross salary minus the tax) in an alert box.
Tax is 10% of the salary for salaries greater than zero and less than or equal to 40000
Tax is 15% of the salary for salaries greater than 40000 and less than or equal to 100000.
Tax is 25% of the salary for salaries greater than 100000.
For salaries less than or equal to 0 the program should display"Invalid Input" in the alert box
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started