Write a’ program to compute the sales tax of a jacket in the State of New York. The sales tax of clothing in NY is computed using the following criteria: 4% tax is collected if the price is less than or equal to 100, 8% tax is collected from the part that is greater than 100. For example, if the price of a jacket is 50 dollars, then the tax is 4% × 50 = 2 dollars. If the price of a jacket is 150 dollars, then the tax is 4% × 100 + 8% × (150 – 100) = 8 dollars. Your program should allow the user to enter the price of a jacket, and the display the tax with two decimal places.
4% tax is collected if the price is less than or equal to 100, 8% tax is collected from the part that is greater than 100.
For example, if the price of a jacket is 50 dollars, then the tax is 4% × 50 = 2 dollars. If the price of a jacket is 150 dollars, then the tax is 4% × 100 + 8% × (150 – 100) = 8 dollars.
Your program should allow the user to enter the price of a jacket, and the display the tax with two decimal places.