[SOLVED] Application that calculates the total price of a purchase, including sales tax for the three states where we do business

15.00 $

Programming resource
Digital learning resource
Category:
Practical programming resource
Suitable for guided study and reference
Tutor guidance available when needed

Description

5/5 - (1 vote)
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

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.