I want to make a program using javascript that calculates the tax (at different price levels) on several different items. For instance, the user could enter in 5-6 different prices through a prompt, and the program would calculate the total (price + tax) and display the result. Once the user enters the number -1, that is when the program could stop and calculate the total.
If the price is $100 or less, the tax would be 9%
If the price is greater than $100, the tax would be 7%
I'm pretty confused on how to go about doing this. Any help would be much appreciated.
If the price is $100 or less, the tax would be 9%
If the price is greater than $100, the tax would be 7%
I'm pretty confused on how to go about doing this. Any help would be much appreciated.
Comment