Answered step by step
Verified Expert Solution
Link Copied!

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

  1. 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

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_2

Step: 3

blur-text-image_3

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 Programming questions

Question

=+ c. Use open market operations.

Answered: 1 week ago