Application that calculates the total price of a purchase
Your requirement is to build an application that calculates the total price of a purchase, including sales tax for the three states where we do business. The sales tax is different, depending on what state the customer is from. Washington: 8.1% Idaho: 6.0% Oregon: 0.0%
The HTML form should request input of which of the the three state IDs (WA, ID, OR) the purchaser is from.
The HTML form should request input of the original purchase amount
The PHP code should Use an IF statement to convert the state codes into the sales tax amount Calculate the tax, and add it to the purchase Print out the purchase, the tax, and the total Provide a way to return to the HTML page
You'll get a 791.0bytes .ZIP file.