Replace the hard coded values with your variables that contain the calculations

Replace the hard coded values with your variables

This preview shows page 3 out of 3 pages.

Calculate the subtotal, tax, shipping, and grand total using PHP. Replace the hard-coded values with your variables that contain the calculations. Use 10 percent as the tax amount. The shipping value will be $100 unless the subtotal is above $2000, in which case shipping will be free. Test your solution. Remember that you cannot simply open a local PHP page in the browser from the local filesystem. Instead, you must have the browser request the page from a server. In the setup with XAMPP discussed above, the file must exist within the htdocsfolder of the server, and you can access it from the local browser with a URL such as . All other resources you will reference should be relative to the location of this page. Also verify that the calculations work by editing/changing the values in art-data.phpSubmissionSubmit the following files for this lab: ArtStore.php, art-header.inc.php, art-footer-inc.php. Similar to previous labs, assume that the folders imagesand bootstrap3_defaultTheme, as well as the style sheet ArtStore.cssand an input file art-data.php, will be available on the server in the same directory as the files you submitted when the TA will test your submission. .
Image of page 3

You've reached the end of your free preview.

Want to read all 3 pages?

  • Fall '09
  • KUNZ
  • Department of Systems and Computer Engineering

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture